diff options
-rwxr-xr-x | tests.sh | 8 | ||||
-rw-r--r-- | tests/test_printf_nul.out | bin | 198 -> 8 bytes |
2 files changed, 7 insertions, 1 deletions
@@ -1039,7 +1039,13 @@ function test_printf_leak() { function test_printf_nul() { # NUL byte regression test - bfs_diff basic -printf '%h\0%f\n' + local OUT="$TESTS/${FUNCNAME[0]}.out" + local ARGS=(basic -maxdepth 0 -printf '%h\0%f\n') + if [ "$UPDATE" ]; then + $BFS "${ARGS[@]}" >"$OUT" + else + diff -u "$OUT" <($BFS "${ARGS[@]}") + fi } function test_fstype() { diff --git a/tests/test_printf_nul.out b/tests/test_printf_nul.out Binary files differindex 3e30a4f..6833fdd 100644 --- a/tests/test_printf_nul.out +++ b/tests/test_printf_nul.out |