Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115839966
D41755.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41755.diff
View Options
diff --git a/usr.bin/split/tests/split_test.sh b/usr.bin/split/tests/split_test.sh
--- a/usr.bin/split/tests/split_test.sh
+++ b/usr.bin/split/tests/split_test.sh
@@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
-# Copyright (c) 2022 Klara Systems
+# Copyright (c) 2022-2023 Klara Systems
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -200,6 +200,26 @@
atf_check -o file:foo-ab cat split-ab
}
+atf_test_case autoextend
+autoextend_body()
+{
+ seq $((26*25+1)) >input
+ atf_check split -l1 input
+ atf_check -o inline:"$((26*25))\n" cat xyz
+ atf_check -o inline:"$((26*25+1))\n" cat xzaaa
+}
+
+atf_test_case continue
+continue_body()
+{
+ echo hello >input
+ atf_check split input
+ atf_check -o file:input cat xaa
+ atf_check -s exit:1 -e ignore cat xab
+ atf_check split -c input
+ atf_check -o file:input cat xab
+}
+
atf_init_test_cases()
{
atf_add_test_case bytes
@@ -209,4 +229,6 @@
atf_add_test_case numeric_suffix
atf_add_test_case larger_suffix_length
atf_add_test_case pattern
+ atf_add_test_case autoextend
+ atf_add_test_case continue
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 9:59 AM (18 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17855610
Default Alt Text
D41755.diff (1 KB)
Attached To
Mode
D41755: split: Add missing test cases.
Attached
Detach File
Event Timeline
Log In to Comment