Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163280113
D55111.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
800 B
Referenced Files
None
Subscribers
None
D55111.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
Wed, Jul 22, 4:56 PM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35372875
Default Alt Text
D55111.diff (800 B)
Attached To
Mode
D55111: diff: Add test case for pagination resource leak
Attached
Detach File
Event Timeline
Log In to Comment