aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makeconfig b/Makeconfig
index 3709c88a45..9078b29306 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -1083,11 +1083,14 @@ endif
# The name to give to a test in test results summaries.
test-name = $(strip $(patsubst %.out, %, $(patsubst $(common-objpfx)%, %, $@)))
+# Likewise, in XFAIL variable names.
+test-xfail-name = $(strip $(patsubst %.out, %, $(patsubst $(objpfx)%, %, $@)))
+
# Command to output a test status line (such as PASS: test-name). If
-# test-xfail-$(@F:.out=) has a nonempty value, the status will be
+# test-xfail-$(test-xfail-name) has a nonempty value, the status will be
# XPASS or XFAIL rather than PASS or FAIL.
evaluate-test = $(..)scripts/evaluate-test.sh $(test-name) $$? \
- $(if $(test-xfail-$(@F:.out=)),true,false) \
+ $(if $(test-xfail-$(test-xfail-name)),true,false) \
> $(common-objpfx)$(test-name).test-result
endif # Makeconfig not yet included