aboutsummaryrefslogtreecommitdiff
path: root/t/unit-tests/clar/test/expected/without_arguments
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-09-10 15:09:58 +0200
committerJunio C Hamano <gitster@pobox.com>2025-09-11 09:08:49 -0700
commite7f04f651ac4550db3572720027503617d62ffeb (patch)
tree70f5f92f816b046ec3d2199997f1fbdce18657d7 /t/unit-tests/clar/test/expected/without_arguments
parentc44beea485f0f2feaf460e2ac87fdd5608d63cf0 (diff)
downloadgit-e7f04f651ac4550db3572720027503617d62ffeb.tar.xz
t/unit-tests: update clar to fcbed04
Update clar to fcbed04 (Merge pull request #123 from pks-gitlab/pks-sandbox-ubsan, 2025-09-10). The most significant changes since the last version include: - Fixed platform support for HP-UX. - Fixes for how clar handles the `-q` flag. - A couple of leak fixes for reported clar errors. - A new `cl_invoke()` function that retains line information. - New infrastructure to create temporary directories. - Improved printing of error messages so that all lines are now properly indented. - Proper selftests for the clar. Most of these changes are somewhat irrelevant to us, but neither do we have to adjust to any of these changes, either. What _is_ interesting to us though is especially the fixed support for HP-UX, and eventually we may also want to use `cl_invoke()`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/clar/test/expected/without_arguments')
-rw-r--r--t/unit-tests/clar/test/expected/without_arguments53
1 files changed, 53 insertions, 0 deletions
diff --git a/t/unit-tests/clar/test/expected/without_arguments b/t/unit-tests/clar/test/expected/without_arguments
new file mode 100644
index 0000000000..08b67b874c
--- /dev/null
+++ b/t/unit-tests/clar/test/expected/without_arguments
@@ -0,0 +1,53 @@
+Loaded 1 suites:
+Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
+FFFFFFFFFF
+
+ 1) Failure:
+selftest::suite::1 [file:42]
+ Function call failed: -1
+
+ 2) Failure:
+selftest::suite::2 [file:42]
+ Expression is not true: 100 == 101
+
+ 3) Failure:
+selftest::suite::strings [file:42]
+ String mismatch: "mismatched" != actual ("this one fails")
+ 'mismatched' != 'expected' (at byte 0)
+
+ 4) Failure:
+selftest::suite::strings_with_length [file:42]
+ String mismatch: "exactly" != actual ("this one fails")
+ 'exa' != 'exp' (at byte 2)
+
+ 5) Failure:
+selftest::suite::int [file:42]
+ 101 != value ("extra note on failing test")
+ 101 != 100
+
+ 6) Failure:
+selftest::suite::int_fmt [file:42]
+ 022 != value
+ 0022 != 0144
+
+ 7) Failure:
+selftest::suite::bool [file:42]
+ 0 != value
+ 0 != 1
+
+ 8) Failure:
+selftest::suite::ptr [file:42]
+ Pointer mismatch: p1 != p2
+ 0x1 != 0x2
+
+ 9) Failure:
+selftest::suite::multiline_description [file:42]
+ Function call failed: -1
+ description line 1
+ description line 2
+
+ 10) Failure:
+selftest::suite::null_string [file:42]
+ String mismatch: "expected" != actual ("this one fails")
+ 'expected' != NULL
+