[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[committed] Require hello-gnu-pubnames for pr24771.sh



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"