summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.sh')
-rw-r--r--tests/run.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index ad9c0be..df3bd88 100644
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -359,6 +359,7 @@ bfs_verbose_impl() {
# Run the bfs we're testing
invoke_bfs() {
+ skip
bfs_verbose "$@"
local ret=0
@@ -454,9 +455,14 @@ diff_output() {
# Run bfs, and diff it against the expected output
bfs_diff() {
- local ret=0
- invoke_bfs "$@" >"$OUT" || ret=$?
+ local fd
+ if ! fd=$("${BFS[@]}" "$@"); then
+ skip
+ fi
+ local ret=0
+ eval "$fd" >"$OUT" || ret=$?
+ sed -i 's|/$||' "$OUT"
sort_output
diff_output || exit $EX_DIFF