summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index a07ae8a..ef4bbfc 100755
--- a/tests.sh
+++ b/tests.sh
@@ -302,6 +302,7 @@ gnu_tests=(
test_printf_escapes
test_printf_times
test_printf_leak
+ test_printf_nul
test_quit_after_print
test_quit_before_print
test_fstype
@@ -1036,6 +1037,11 @@ function test_printf_leak() {
bfs_diff basic -maxdepth 0 -printf '%p'
}
+function test_printf_nul() {
+ # NUL byte regression test
+ bfs_diff basic -printf '%h\0%f\n'
+}
+
function test_fstype() {
fstype="$($BFS -printf '%F\n' | head -n1)"
bfs_diff basic -fstype "$fstype"