summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-19 18:04:28 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-19 18:04:28 -0400
commit8a74fd3f93ca7f55fd237146d663396fc81f1ac4 (patch)
tree2f4205657f0fdb7a6bd8e2e1f53cb8cb2b0ee100 /tests
parent079978c185c41a3d21bca22a24df712e35d70354 (diff)
downloadbfs-8a74fd3f93ca7f55fd237146d663396fc81f1ac4.tar.xz
printf: The ' ' (space) flag must be numeric
Diffstat (limited to 'tests')
-rw-r--r--tests/bfs/printf_invalid_flag.sh1
-rw-r--r--tests/gnu/printf_flags.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/bfs/printf_invalid_flag.sh b/tests/bfs/printf_invalid_flag.sh
new file mode 100644
index 0000000..70dfe97
--- /dev/null
+++ b/tests/bfs/printf_invalid_flag.sh
@@ -0,0 +1 @@
+! invoke_bfs basic -printf '% p'
diff --git a/tests/gnu/printf_flags.sh b/tests/gnu/printf_flags.sh
index 2ef37ad..98e8faa 100644
--- a/tests/gnu/printf_flags.sh
+++ b/tests/gnu/printf_flags.sh
@@ -1 +1 @@
-bfs_diff basic -printf '|%- 10.10p| %+03d %#4m\n'
+bfs_diff basic -printf '|%-10.10p| %+03d % #4m\n'