summaryrefslogtreecommitdiffstats
path: root/tests/gnu/ok_flush.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gnu/ok_flush.sh')
-rw-r--r--tests/gnu/ok_flush.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gnu/ok_flush.sh b/tests/gnu/ok_flush.sh
new file mode 100644
index 0000000..87c7298
--- /dev/null
+++ b/tests/gnu/ok_flush.sh
@@ -0,0 +1,4 @@
+# I/O streams should be flushed before -ok prompts
+yes | invoke_bfs basic -printf '%p ? ' -ok echo found \; 2>&1 | tr '\0' ' ' | sed 's/?.*?/?/' >"$OUT"
+sort_output
+diff_output