summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-05-26 10:35:24 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-05-26 10:45:45 -0400
commit6fa72ff42d95dfd883d59ce7cf6bdc74abebf015 (patch)
treeba257f3e9dd30701d9c8d17024295e358c7d3a06 /tests
parentd26458b7235e70edf4ca57d8d8db70a01e1afbf4 (diff)
downloadbfs-6fa72ff42d95dfd883d59ce7cf6bdc74abebf015.tar.xz
tests/posix: Add a test for POSIX bug 1859
... which requires we process root paths strictly in-order.
Diffstat (limited to 'tests')
-rw-r--r--tests/posix/root_order.out4
-rw-r--r--tests/posix/root_order.sh6
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/posix/root_order.out b/tests/posix/root_order.out
new file mode 100644
index 0000000..ea94276
--- /dev/null
+++ b/tests/posix/root_order.out
@@ -0,0 +1,4 @@
+basic/a
+basic/b
+basic/c/d
+basic/e/f
diff --git a/tests/posix/root_order.sh b/tests/posix/root_order.sh
new file mode 100644
index 0000000..86adf20
--- /dev/null
+++ b/tests/posix/root_order.sh
@@ -0,0 +1,6 @@
+# Root paths must be processed in order
+# https://www.austingroupbugs.net/view.php?id=1859
+
+# -size forces a stat(), which we don't want to be async
+invoke_bfs basic/{a,b,c/d,e/f} -size -1000 >"$OUT"
+diff_output