]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Tests: Stop and report when cursor test fails
authorTerry Burton <tez@terryburton.co.uk>
Tue, 13 Oct 2020 18:02:59 +0000 (19:02 +0100)
committerAlan DeKok <aland@freeradius.org>
Tue, 13 Oct 2020 19:08:48 +0000 (15:08 -0400)
src/tests/misc/all.mk

index 687e9cbd7e990d6b12fd874884e305b52170e4e0..d7ca051af487581f7197c477d329b71cf7b16e91 100644 (file)
@@ -16,6 +16,9 @@ $(OUTPUT)/cursor.log: $(BUILD_DIR)/bin/test_cursor | $(OUTPUT)
        @echo "MISC-TEST cursor"
        ${Q}if ! $^ > $@ ; then \
                echo FAILED "$^ > $@"; \
+               cat "$@"; \
+               rm -f $(BUILD_DIR)/tests/test.misc; \
+               exit 1; \
        fi
 
 $(TEST): $(OUTPUT)/cursor.log