summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index ef4bbfc..c518f33 100755
--- a/tests.sh
+++ b/tests.sh
@@ -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() {