From b277c47ea4154e5d5acc0927d8f8374f489b4437 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 13 Mar 2022 13:41:42 -0400 Subject: tests: Use -print0 instead of -printf '%p ' for exec flush tests --- tests.sh | 8 ++++---- tests/test_exec_flush.out | Bin 310 -> 310 bytes tests/test_exec_plus_flush.out | Bin 22 -> 22 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests.sh b/tests.sh index 5370249..05c5060 100755 --- a/tests.sh +++ b/tests.sh @@ -1753,13 +1753,13 @@ function test_exec_substring() { function test_exec_flush() { # IO streams should be flushed before executing programs - bfs_diff basic -printf '%p ' -exec echo found \; + bfs_diff basic -print0 -exec echo found \; } function test_exec_flush_fail() { # Failure to flush streams before exec should be caught skip_if test ! -e /dev/full - fail quiet invoke_bfs basic -printf '%p ' -exec true \; >/dev/full + fail quiet invoke_bfs basic -print0 -exec true \; >/dev/full } function test_exec_flush_fprint() { @@ -1773,12 +1773,12 @@ function test_exec_flush_fprint_fail() { } function test_exec_plus_flush() { - bfs_diff basic/a -printf '%p ' -exec echo found {} + + bfs_diff basic/a -print0 -exec echo found {} + } function test_exec_plus_flush_fail() { skip_if test ! -e /dev/full - fail quiet invoke_bfs basic/a -printf '%p ' -exec echo found {} + >/dev/full + fail quiet invoke_bfs basic/a -print0 -exec echo found {} + >/dev/full } function test_execdir() { diff --git a/tests/test_exec_flush.out b/tests/test_exec_flush.out index fdd7b16..7e93fdf 100644 Binary files a/tests/test_exec_flush.out and b/tests/test_exec_flush.out differ diff --git a/tests/test_exec_plus_flush.out b/tests/test_exec_plus_flush.out index 7c587ba..3e276be 100644 Binary files a/tests/test_exec_plus_flush.out and b/tests/test_exec_plus_flush.out differ -- cgit v1.2.3