about summary refs log tree commit diff
path: root/Rules
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-03-10 15:13:14 -0700
committerRoland McGrath <roland@hack.frob.com>2015-03-10 15:13:14 -0700
commit44a6213c8eebf3f69712a5fba9a33bbb90a79023 (patch)
tree692ef562f276436103f25b145b49d2f529705131 /Rules
parentd3821ab0ace5bd33e7132488c4564ea2371840d8 (diff)
downloadglibc-44a6213c8eebf3f69712a5fba9a33bbb90a79023.tar.gz
glibc-44a6213c8eebf3f69712a5fba9a33bbb90a79023.tar.xz
glibc-44a6213c8eebf3f69712a5fba9a33bbb90a79023.zip
Let tests result in UNSUPPORTED; use that for unbuildable C++ cases
Diffstat (limited to 'Rules')
-rw-r--r--Rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/Rules b/Rules
index 829beac487..e237d0352a 100644
--- a/Rules
+++ b/Rules
@@ -198,6 +198,18 @@ $(objpfx)%.out: /dev/null $(objpfx)%	# Make it 2nd arg for canned sequence.
 	$(make-test-out) > $@; \
 	$(evaluate-test)
 
+# tests-unsupported lists tests that we will not try to build at all in
+# this configuration.  Note this runs every time because it does not
+# actually create its target.  The dependency on Makefile is meant to
+# ensure that it runs after a Makefile change to add a test to the list
+# when it previously ran and produced a .out file (probably for a failure).
+ifneq "$(strip $(tests-unsupported))" ""
+$(tests-unsupported:%=$(objpfx)%.out): $(objpfx)%.out: Makefile
+	@rm -f $@
+	$(..)scripts/evaluate-test.sh $(patsubst $(common-objpfx)%.out,%,$@) \
+				      77 false false > $(@:.out=.test-result)
+endif
+
 endif	# tests