summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/ttest01/test-assert.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/ttest01/test-assert.c')
-rw-r--r--testsuites/libtests/ttest01/test-assert.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuites/libtests/ttest01/test-assert.c b/testsuites/libtests/ttest01/test-assert.c
index a819b41716..cd4d41ca74 100644
--- a/testsuites/libtests/ttest01/test-assert.c
+++ b/testsuites/libtests/ttest01/test-assert.c
@@ -56,6 +56,27 @@ T_TEST_CASE_FIXTURE(assert2, &fixture)
T_log(T_QUIET, "not reached");
}
+#include "t-self-test.h"
+
+T_TEST_OUTPUT(assert,
+"B:assert\n"
+"P:0:0:UI1:test-assert.c:5\n"
+"F:1:0:UI1:test-assert.c:6:test fails and we stop the test case\n"
+"E:assert:N:2:F:1:D:0.001000\n");
+
+T_TEST_OUTPUT(assert2,
+"B:assert2\n"
+"L:setup\n"
+"P:0:0:UI1:test-assert.c:18\n"
+"P:1:0:UI1:test-assert.c:54\n"
+"F:2:0:UI1:test-assert.c:55:test fails and we stop the test case\n"
+"L:stop\n"
+"P:3:0:UI1:test-assert.c:29\n"
+"L:teardown\n"
+"P:4:0:UI1:test-assert.c:40\n"
+"P:5:0:UI1:test-assert.c:42\n"
+"E:assert2:N:6:F:1:D:0.001000\n");
+
/*
* The license is at the end of the file to be able to use the test code and
* output in examples in the documentation. This is also the reason for the