From f8c17e79fab13a3d1de976c1c3564df7f8c2a175 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 27 Feb 2014 03:25:27 +0000 Subject: Support expected failures in .test-result files. This patch, an updated version of , makes it possible for .test-result files for individual tests to contain XPASS and XFAIL rather than PASS and FAIL in cases where failure is expected. This replaces the marking of two individual tests with "-" to cause them to be expected at makefile level to fail; evaluate-test.sh will ensure it exits with status 0 for an expected failure. Tested x86_64. * scripts/evaluate-test.sh: Take new argument indicating whether failure is expected. * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh indicating whether failure is expected. * conform/Makefile (test-xfail-run-conformtest): New variable. ($(objpfx)run-conformtest.out): Don't expect to fail at makefile level. * posix/Makefile (test-xfail-annexc): New variable. ($(objpfx)annexc.out): Don't expect to fail at makefile level. --- posix/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'posix/Makefile') diff --git a/posix/Makefile b/posix/Makefile index 304238ffe8..b41055a509 100644 --- a/posix/Makefile +++ b/posix/Makefile @@ -233,8 +233,9 @@ tests: $(objpfx)bug-regex2-mem $(objpfx)bug-regex14-mem \ xtests: $(objpfx)bug-ga2-mem endif +test-xfail-annexc = yes $(objpfx)annexc.out: $(objpfx)annexc - -$(dir $<)$(notdir $<) '$(CC)' \ + $(dir $<)$(notdir $<) '$(CC)' \ '$(patsubst %,-I../%,$(sorted-subdirs)) -I../include $(+sysdep-includes) $(sysincludes) -I..' > $@; \ $(evaluate-test) -- cgit v1.2.3-70-g09d2