summaryrefslogtreecommitdiffstats
path: root/tests/posix
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-16 14:39:18 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-16 15:06:25 -0500
commit7d87b96b421b76e387cee903b7b7c1bc16c54310 (patch)
treee5c90a458a1418578cf31fd80301f6f99ab96251 /tests/posix
parente01042b84abdfa224d47e6d11eb9798ce4c7d2f8 (diff)
downloadbfs-7d87b96b421b76e387cee903b7b7c1bc16c54310.tar.xz
tests: Move crash detection into invoke_bfs, use ! instead of fail
Diffstat (limited to 'tests/posix')
-rw-r--r--tests/posix/closed_stderr.sh2
-rw-r--r--tests/posix/closed_stdout.sh2
-rw-r--r--tests/posix/exec_plus_nothing.sh2
-rw-r--r--tests/posix/extra_paren.sh2
-rw-r--r--tests/posix/incomplete.sh2
-rw-r--r--tests/posix/missing_paren.sh2
-rw-r--r--tests/posix/newer_nonexistent.sh2
-rw-r--r--tests/posix/ok_plus_nothing.sh2
-rw-r--r--tests/posix/readdir_error.sh2
9 files changed, 9 insertions, 9 deletions
diff --git a/tests/posix/closed_stderr.sh b/tests/posix/closed_stderr.sh
index cc746ef..570d5bb 100644
--- a/tests/posix/closed_stderr.sh
+++ b/tests/posix/closed_stderr.sh
@@ -1 +1 @@
-fail invoke_bfs basic >&- 2>&-
+! invoke_bfs basic >&- 2>&-
diff --git a/tests/posix/closed_stdout.sh b/tests/posix/closed_stdout.sh
index 446bf56..25c060d 100644
--- a/tests/posix/closed_stdout.sh
+++ b/tests/posix/closed_stdout.sh
@@ -1 +1 @@
-fail invoke_bfs basic >&-
+! invoke_bfs basic >&-
diff --git a/tests/posix/exec_plus_nothing.sh b/tests/posix/exec_plus_nothing.sh
index ef01968..347722d 100644
--- a/tests/posix/exec_plus_nothing.sh
+++ b/tests/posix/exec_plus_nothing.sh
@@ -1,2 +1,2 @@
# Regression test: don't look OOB for {} +
-fail invoke_bfs basic -exec +
+! invoke_bfs basic -exec +
diff --git a/tests/posix/extra_paren.sh b/tests/posix/extra_paren.sh
index cd8e8f8..d15022f 100644
--- a/tests/posix/extra_paren.sh
+++ b/tests/posix/extra_paren.sh
@@ -1 +1 @@
-fail invoke_bfs basic -print \)
+! invoke_bfs basic -print \)
diff --git a/tests/posix/incomplete.sh b/tests/posix/incomplete.sh
index 07b1b61..bca5a13 100644
--- a/tests/posix/incomplete.sh
+++ b/tests/posix/incomplete.sh
@@ -1 +1 @@
-fail invoke_bfs basic \(
+! invoke_bfs basic \(
diff --git a/tests/posix/missing_paren.sh b/tests/posix/missing_paren.sh
index ac8dd60..d906fbe 100644
--- a/tests/posix/missing_paren.sh
+++ b/tests/posix/missing_paren.sh
@@ -1 +1 @@
-fail invoke_bfs basic \( -print
+! invoke_bfs basic \( -print
diff --git a/tests/posix/newer_nonexistent.sh b/tests/posix/newer_nonexistent.sh
index 789cadf..5f2da4b 100644
--- a/tests/posix/newer_nonexistent.sh
+++ b/tests/posix/newer_nonexistent.sh
@@ -1 +1 @@
-fail invoke_bfs times -newer times/nonexistent
+! invoke_bfs times -newer times/nonexistent
diff --git a/tests/posix/ok_plus_nothing.sh b/tests/posix/ok_plus_nothing.sh
index 7cb7de5..77c7644 100644
--- a/tests/posix/ok_plus_nothing.sh
+++ b/tests/posix/ok_plus_nothing.sh
@@ -1,2 +1,2 @@
# Regression test: don't look OOB for {} +
-fail invoke_bfs basic -ok +
+! invoke_bfs basic -ok +
diff --git a/tests/posix/readdir_error.sh b/tests/posix/readdir_error.sh
index 483f543..e45ec5c 100644
--- a/tests/posix/readdir_error.sh
+++ b/tests/posix/readdir_error.sh
@@ -34,4 +34,4 @@ done
# On Linux, open(/proc/$pid/net) will succeed but readdir() will fail
test -r "/proc/$pid/net" || skip
-fail invoke_bfs "/proc/$pid/net" >/dev/null
+! invoke_bfs "/proc/$pid/net" >/dev/null