This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix tst-support_record_failure-2 for run-built-tests = no [committed]


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

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

diff --git a/support/Makefile b/support/Makefile
index 1bde8bd..4e9d42e 100644
--- a/support/Makefile
+++ b/support/Makefile
@@ -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

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]