Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167886829
D54853.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
789 B
Referenced Files
None
Subscribers
None
D54853.diff
View Options
diff --git a/usr.bin/touch/tests/touch_test.sh b/usr.bin/touch/tests/touch_test.sh
--- a/usr.bin/touch/tests/touch_test.sh
+++ b/usr.bin/touch/tests/touch_test.sh
@@ -192,6 +192,19 @@
atf_check_atime 84721020 file
}
+atf_test_case touch_just_mtime
+touch_just_mtime_head()
+{
+ atf_set descr "Update just modify time of file (-m)"
+}
+touch_just_mtime_body()
+{
+ atf_check touch -t 200406151337 file
+ atf_check touch -mt 197209071337 file
+ atf_check_mtime 84721020 file
+ atf_check_atime 1087306620 file
+}
+
atf_init_test_cases()
{
atf_add_test_case touch_none
@@ -204,5 +217,5 @@
atf_add_test_case touch_symlink_h_flag
atf_add_test_case touch_symlink_no_h_flag
atf_add_test_case touch_just_atime
- # TODO: add test cases for -m
+ atf_add_test_case touch_just_mtime
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 26, 6:29 AM (2 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37272526
Default Alt Text
D54853.diff (789 B)
Attached To
Mode
D54853: touch: Test for -m flag
Attached
Detach File
Event Timeline
Log In to Comment