@@ -5,7 +5,7 @@ test_description='Test the output of the unit test framework'
5
5
TEST_PASSES_SANITIZE_LEAK=true
6
6
. ./test-lib.sh
7
7
8
- test_expect_success ' TAP output from unit tests' '
8
+ test_expect_success ' TAP output from unit tests' - << \ EOT
9
9
cat >expect <<-EOF &&
10
10
ok 1 - passing test
11
11
ok 2 - passing test and assertion return 1
@@ -16,12 +16,12 @@ test_expect_success 'TAP output from unit tests' '
16
16
ok 4 - failing test and assertion return 0
17
17
not ok 5 - passing TEST_TODO() # TODO
18
18
ok 6 - passing TEST_TODO() returns 1
19
- # todo check ${SQ} check(x)${SQ} succeeded at t/helper/test-example-tap.c:26
19
+ # todo check ' check(x)' succeeded at t/helper/test-example-tap.c:26
20
20
not ok 7 - failing TEST_TODO()
21
21
ok 8 - failing TEST_TODO() returns 0
22
22
# check "0" failed at t/helper/test-example-tap.c:31
23
23
# skipping test - missing prerequisite
24
- # skipping check ${SQ}1${SQ} at t/helper/test-example-tap.c:33
24
+ # skipping check '1' at t/helper/test-example-tap.c:33
25
25
ok 9 - test_skip() # SKIP
26
26
ok 10 - skipped test returns 1
27
27
# skipping test - missing prerequisite
@@ -39,12 +39,12 @@ test_expect_success 'TAP output from unit tests' '
39
39
# check "!strcmp("NULL", NULL)" failed at t/helper/test-example-tap.c:63
40
40
# left: "NULL"
41
41
# right: NULL
42
- # check "${SQ}a${SQ} == ${SQ}\n${SQ} " failed at t/helper/test-example-tap.c:64
43
- # left: ${SQ}a${SQ}
44
- # right: ${SQ} \012${SQ}
45
- # check "${SQ} \\\\${SQ} == ${SQ}\\${SQ}${SQ} " failed at t/helper/test-example-tap.c:65
46
- # left: ${SQ} \\\\${SQ}
47
- # right: ${SQ}\\${SQ}${SQ}
42
+ # check "'a' == '\n' " failed at t/helper/test-example-tap.c:64
43
+ # left: 'a'
44
+ # right: ' \012'
45
+ # check "' \\\\ ' == ' \\ '' " failed at t/helper/test-example-tap.c:65
46
+ # left: ' \\\\ '
47
+ # right: ' \\ ''
48
48
not ok 17 - messages from failing string and char comparison
49
49
# BUG: test has no checks at t/helper/test-example-tap.c:92
50
50
not ok 18 - test with no checks
@@ -54,6 +54,6 @@ test_expect_success 'TAP output from unit tests' '
54
54
55
55
! test-tool example-tap >actual &&
56
56
test_cmp expect actual
57
- '
57
+ EOT
58
58
59
59
test_done
0 commit comments