summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-09-17 12:11:11 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-09-17 12:11:11 -0400
commit5559b9ed33db3e88c6576f1a43ce48b123462e8d (patch)
treeac162579f26144fa9dc637174fafab587a409c90 /tests.sh
parent86d790e134d5a12e569e1d78804bc5a54ca9ed25 (diff)
downloadbfs-5559b9ed33db3e88c6576f1a43ce48b123462e8d.tar.xz
opt: Fix -depth with arguments bigger than INT_MAX
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 983d3b3..6a46ad7 100755
--- a/tests.sh
+++ b/tests.sh
@@ -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)"
}