public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Add tests for filename_language
@ 2017-10-28  2:46 sergiodj+buildbot
  2017-10-28  2:46 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: sergiodj+buildbot @ 2017-10-28  2:46 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 32fa66eb88d029576cfd8f5698d0579662d2f045 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 32fa66eb88d029576cfd8f5698d0579662d2f045

Add tests for filename_language

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).

gdb/ChangeLog:

	* symfile.c: Include selftest.h.
	(class scoped_restore_filename_language_table): New.
	(test_filename_language): New test.
	(test_set_ext_lang_command): New test.
	(_initialize_symfile): Register tests.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-10-28 17:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-28  2:46 [binutils-gdb] Add tests for filename_language sergiodj+buildbot
2017-10-28  2:46 ` Failures on Fedora-s390x-m64, branch master sergiodj+buildbot
2017-10-28  7:43 ` Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, " sergiodj+buildbot
2017-10-28 16:31 ` Failures on Fedora-x86_64-native-gdbserver-m64, " sergiodj+buildbot
2017-10-28 17:22 ` Failures on Fedora-i686, " sergiodj+buildbot
2017-10-28 17:22 ` Failures on Fedora-x86_64-cc-with-index, " sergiodj+buildbot
2017-10-28 17:22 ` Failures on Fedora-x86_64-m32, " sergiodj+buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).