@@ -8,8 +8,8 @@ section("it should fail with a formatted fatal error message")
88 MESSAGE "something happened\n on multiple lines" )
99
1010 assert_fatal_error(
11- CALL fail "something happened" "on multiple lines"
12- MESSAGE "something happened\n on multiple lines" )
11+ CALL fail "something happened" "not on multiple lines"
12+ MESSAGE "something happened not on multiple lines" )
1313endsection()
1414
1515section("it should fail with a formatted fatal error message "
@@ -18,30 +18,32 @@ section("it should fail with a formatted fatal error message "
1818 set (REASON_MULTILINE "some reason\n on multiple lines" )
1919
2020 assert_fatal_error(
21- CALL fail "something happened" REASON
22- MESSAGE "something happened: \n some reason" )
21+ CALL fail "something happened because of " REASON
22+ MESSAGE "something happened because of ' some reason' " )
2323
2424 assert_fatal_error(
25- CALL fail "something happened" REASON_MULTILINE
26- MESSAGE "something happened:\n some reason\n on multiple lines" )
25+ CALL fail "something happened because of" REASON_MULTILINE
26+ MESSAGE "something happened because of:\n "
27+ " some reason\n on multiple lines" )
2728
2829 assert_fatal_error(
29- CALL fail "something happened\n on multiple lines" REASON
30- MESSAGE "something happened\n on multiple lines: \n some reason" )
30+ CALL fail "something happened\n on multiple lines because of " REASON
31+ MESSAGE "something happened\n on multiple lines because of ' some reason' " )
3132
3233 assert_fatal_error(
33- CALL fail "something happened\n on multiple lines" REASON_MULTILINE
34- MESSAGE "something happened\n on multiple lines:\n "
34+ CALL fail "something happened\n on multiple lines because of"
35+ REASON_MULTILINE
36+ MESSAGE "something happened\n on multiple lines because of:\n "
3537 " some reason\n on multiple lines" )
3638
3739 assert_fatal_error(
38- CALL fail "something happened" "on multiple lines" REASON
39- MESSAGE "something happened\n on multiple lines: \n some reason" )
40+ CALL fail "something happened" "not on multiple lines because of " REASON
41+ MESSAGE "something happened not on multiple lines because of ' some reason' " )
4042
4143 assert_fatal_error(
4244 CALL fail
43- "something happened" "on multiple lines" REASON
44- "something else happened" REASON_MULTILINE
45- MESSAGE "something happened\n on multiple lines: \n some reason\n "
46- "something else happened:\n some reason\n on multiple lines" )
45+ "something happened" "not on multiple lines because of " REASON
46+ "something else happened because of " REASON_MULTILINE
47+ MESSAGE "something happened not on multiple lines because of ' some reason' "
48+ "something else happened because of :\n some reason\n on multiple lines" )
4749endsection()
0 commit comments