summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-03-13 13:41:42 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-03-13 13:44:32 -0400
commitb277c47ea4154e5d5acc0927d8f8374f489b4437 (patch)
tree3ed26b1ff72d5fe02eb06a4718bb18a6605d8349
parent851942e235fe17869d7e7f2b3cc4d559f1e90e89 (diff)
downloadbfs-b277c47ea4154e5d5acc0927d8f8374f489b4437.tar.xz
tests: Use -print0 instead of -printf '%p ' for exec flush tests
-rwxr-xr-xtests.sh8
-rw-r--r--tests/test_exec_flush.outbin310 -> 310 bytes
-rw-r--r--tests/test_exec_plus_flush.outbin22 -> 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
--- a/tests/test_exec_flush.out
+++ b/tests/test_exec_flush.out
Binary files differ
diff --git a/tests/test_exec_plus_flush.out b/tests/test_exec_plus_flush.out
index 7c587ba..3e276be 100644
--- a/tests/test_exec_plus_flush.out
+++ b/tests/test_exec_plus_flush.out
Binary files differ