public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Require hello-gnu-pubnames for pr24771.sh
@ 2019-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub

Hi,

On the dwz-centos-* buildbots (apparantly with an older gcc) we see:
...
cc hello.c -o hello-gnu-pubnames -g -ggnu-pubnames
cc1: error: unrecognised debug output level "gnu-pubnames"
make: *** [hello-gnu-pubnames] Error 1
...

Fix this by allowing the hello-gnu-pubnames to fail, and requiring
hello-gnu-pubnames for pr24771.sh.

Committed to trunk.

Thanks,
- Tom

Require hello-gnu-pubnames for pr24771.sh

2019-07-05  Tom de Vries  <tdevries@suse.de>

	* Makefile (hello-gnu-pubnames): Allow compilation failure.
	* testsuite/dwz.tests/dwz-tests.exp: Require hello-gnu-pubnames for
	pr24771.sh.

---
 Makefile                          | 2 +-
 testsuite/dwz.tests/dwz-tests.exp | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0216de4..f1214ba 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ hello:
 	$(CC) $(TEST_SRC)/hello.c -o $@ -g
 
 hello-gnu-pubnames:
-	$(CC) $(TEST_SRC)/hello.c -o $@ -g -ggnu-pubnames
+	$(CC) $(TEST_SRC)/hello.c -o $@ -g -ggnu-pubnames || touch $@
 
 dw2-restrict:
 	$(CC) -no-pie $(TEST_SRC)/dw2-restrict.S -o $@ || touch $@
diff --git a/testsuite/dwz.tests/dwz-tests.exp b/testsuite/dwz.tests/dwz-tests.exp
index ad1ac47..9dda522 100644
--- a/testsuite/dwz.tests/dwz-tests.exp
+++ b/testsuite/dwz.tests/dwz-tests.exp
@@ -52,6 +52,9 @@ foreach test $tests {
     if { $basename == "pr24747.sh" } {
 	lappend required_execs "start-gold"
     }
+    if { $basename == "pr24771.sh" } {
+	lappend required_execs "hello-gnu-pubnames"
+    }
     if { ![istarget x86_64-*-*] } {
 	if { $basename == "pr24468.sh" } {
 	    unsupported "$test"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-05 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [committed] Require hello-gnu-pubnames for pr24771.sh Tom de Vries

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