This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] c++-types-check: Do not run this test if there is no C++ support
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 26 Oct 2015 14:15:48 +0100
- Subject: [PATCH] c++-types-check: Do not run this test if there is no C++ support
- Authentication-results: sourceware.org; auth=none
I'm not sure if there is a way to mark this test as UNSUPPORTED. With
the attached patch, at least it is no longer reported as FAIL.
Florian
2015-10-26 Florian Weimer <fweimer@redhat.com>
* Makefile (c++-types-check.out): Change condition from CXX == no
to CXX = "".
(tests-special): Do not add c++-types-check.out.
[CXX] (tests-special): Add c++-types-check.out.
diff --git a/Makefile b/Makefile
index b2dd771..e370770 100644
--- a/Makefile
+++ b/Makefile
@@ -250,11 +250,11 @@ mostlyclean: parent-mostlyclean
tests-clean:
@$(MAKE) subdir_testclean no_deps=t
-tests-special += $(objpfx)c++-types-check.out $(objpfx)check-local-headers.out
-ifneq ($(CXX),no)
+tests-special += $(objpfx)check-local-headers.out
+ifneq ($(CXX),)
+tests-special += $(objpfx)c++-types-check.out
vpath c++-types.data $(+sysdep_dirs)
-
$(objpfx)c++-types-check.out: c++-types.data scripts/check-c++-types.sh
scripts/check-c++-types.sh $< $(CXX) $(filter-out -std=gnu99 $(+gccwarn-c),$(CFLAGS)) $(CPPFLAGS) > $@; \
$(evaluate-test)