summaryrefslogtreecommitdiff
path: root/Makefile.global
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-11-25 11:45:36 +0800
committerXinchen Hui <laruence@php.net>2012-11-25 12:03:54 +0800
commit4d804aa52d8c74ddcbdb07694b75b38c5eba8004 (patch)
tree4456690e42c30bd08817f6b337501783d7c65c92 /Makefile.global
parent57204ae6d9922a0edc1f3c751541dada625fdf67 (diff)
downloadphp-git-4d804aa52d8c74ddcbdb07694b75b38c5eba8004.tar.gz
let make test report the run-test result
Diffstat (limited to 'Makefile.global')
-rw-r--r--Makefile.global2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.global b/Makefile.global
index eaf651e8e2..5118de83fe 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -102,7 +102,9 @@ test: all
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
+ TEST_RESULT_EXIT_CODE=$$?; \
rm $(top_builddir)/tmp-php.ini; \
+ exit $$TEST_RESULT_EXIT_CODE; \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi