]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix tst-support_record_failure-2 for run-built-tests = no.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 30 Dec 2016 13:01:44 +0000 (13:01 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 30 Dec 2016 13:01:44 +0000 (13:01 +0000)
The support/tst-support_record_failure-2.out test attempts to run
built code even if run-built-tests = no, so failing with
build-many-glibcs.py for all architectures whose code cannot be run on
the system running the script.  This patch disables the test in that
case.

Tested for x86_64 (native), and for aarch64 with build-many-glibcs.py.

* support/Makefile (tests-special): Make definition conditional on
[$(run-built-tests) = yes].
($(objpfx)tst-support_record_failure-2.out): Make rule conditional
on [$(run-built-tests) = yes].

ChangeLog
support/Makefile

index f188d884ba0d873b38101295928b25faf95447db..ad20821e7c2895617aa5f99f84c30f6bf0a49561 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-12-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * support/Makefile (tests-special): Make definition conditional on
+       [$(run-built-tests) = yes].
+       ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
+       on [$(run-built-tests) = yes].
+
 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        * Rules (tests): Add tests-printers-programs to tests to be
index 1bde8bd740f05a188d4a30f8185fdd9b0558cef4..4e9d42ef096fffebb4288ffa3b6ff35c29d79430 100644 (file)
@@ -67,6 +67,7 @@ tests = \
   README-testing \
   tst-support_record_failure \
 
+ifeq ($(run-built-tests),yes)
 tests-special = \
   $(objpfx)tst-support_record_failure-2.out
 
@@ -76,5 +77,6 @@ $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
          '$(run-program-env)' '$(test-program-prefix-after-env)' \
          > $@; \
        $(evaluate-test)
+endif
 
 include ../Rules