Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177577458
D55111.1794786358.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
800 B
Referenced Files
None
Subscribers
None
D55111.1794786358.diff
View Options
diff --git a/usr.bin/diff/tests/diff_test.sh b/usr.bin/diff/tests/diff_test.sh
--- a/usr.bin/diff/tests/diff_test.sh
+++ b/usr.bin/diff/tests/diff_test.sh
@@ -411,6 +411,27 @@
diff -Astone -U$(((1<<31)-2)) a b
}
+prleak_head()
+{
+ atf_set "descr" "Verify that pagination does not leak resources"
+}
+prleak_body()
+{
+ local n=32
+ mkdir a b
+ for hi in $(jot -w%02x $n 0) ; do
+ mkdir a/$hi b/$hi
+ for lo in $(jot -w%02x $n 0) ; do
+ echo "$hi$lo" >a/$hi/$lo
+ echo "$hi$lo" >b/$hi/$lo
+ done
+ done
+ ulimit -n 1000
+ ulimit -u 1000
+ atf_check diff -rul a b
+ atf_check diff -Astone -rul a b
+}
+
atf_init_test_cases()
{
atf_add_test_case simple
@@ -440,4 +461,5 @@
atf_add_test_case dirloop
atf_add_test_case bigc
atf_add_test_case bigu
+ atf_add_test_case prleak
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 11:45 PM (10 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41751935
Default Alt Text
D55111.1794786358.diff (800 B)
Attached To
Mode
D55111: diff: Add test case for pagination resource leak
Attached
Detach File
Event Timeline