[PATCH 1/2] Add tests for filename_language

Simon Marchi simon.marchi@polymtl.ca
Sat Oct 28 01:55:00 GMT 2017


On 2017-10-21 02:52, Simon Marchi wrote:
> From: Simon Marchi <simon.marchi@ericsson.com>
> 
> The next patch touches the filename_language area, but I noticed there
> is no test exercising that.  This patch adds some selftests for
> add_filename_language, deduce_language_from_filename and
> set_ext_lang_command.  Because these tests add entries to the global
> filename_language_table vector, it is not possible to run them
> successfully multiple times in a same GDB instance.  They can
> potentially interfere with each other for the same reason.  I therefore
> added the scoped_restore_filename_language_table class that is used to
> make sure tests leave that global vector in the same state they found 
> it
> (it is replaced in the following patch by a simple scoped_restore).

I pushed these two patches in.

Simon



More information about the Gdb-patches mailing list