diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-09-17 12:11:11 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-09-17 12:11:11 -0400 |
commit | 5559b9ed33db3e88c6576f1a43ce48b123462e8d (patch) | |
tree | ac162579f26144fa9dc637174fafab587a409c90 /tests.sh | |
parent | 86d790e134d5a12e569e1d78804bc5a54ca9ed25 (diff) | |
download | bfs-5559b9ed33db3e88c6576f1a43ce48b123462e8d.tar.xz |
opt: Fix -depth with arguments bigger than INT_MAX
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -259,6 +259,7 @@ bsd_tests=( test_depth_depth_n test_depth_depth_n_plus test_depth_depth_n_minus + test_depth_overflow test_gid_name test_uid_name test_mnewer @@ -1148,6 +1149,10 @@ function test_depth_depth_n_minus() { bfs_diff basic -depth -depth -2 } +function test_depth_overflow() { + bfs_diff basic -depth -4294967296 +} + function test_gid_name() { bfs_diff basic -gid "$(id -gn)" } |