diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-09-06 23:05:35 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-09-06 23:16:20 -0400 |
commit | e8557caace66b058e3048de7eff954baaa6c0493 (patch) | |
tree | cc1ee8f30b4b44bced71ce6a61dd500d2b45c049 /tests.sh | |
parent | 4504dd3599404a916f104e0c715a9bcf3fb0062b (diff) | |
download | bfs-e8557caace66b058e3048de7eff954baaa6c0493.tar.xz |
parse: Don't reorder or remove tests with potential side effects
-empty and -xtype may have side effects like reporting permission
errors, which even affect the exit status of bfs. We shouldn't remove
these effects without -Ofast.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -374,6 +374,7 @@ gnu_tests=( bfs_tests=( test_type_multi test_xtype_multi + test_xtype_reorder test_perm_symbolic_trailing_comma test_perm_symbolic_double_comma test_perm_symbolic_missing_action @@ -755,6 +756,13 @@ function test_xtype_multi() { bfs_diff links -xtype f,d,c 2>/dev/null } +function test_xtype_reorder() { + # Make sure -xtype is not reordered in front of anything -- if -xtype runs + # before -links 100, it will report an ELOOP error + bfs_diff links -links 100 -xtype l + invoke_bfs links -links 100 -xtype l +} + function test_iname() { bfs_diff basic -iname '*F*' } |