diff options
author | Rob Landley <rob@landley.net> | 2016-10-20 16:35:13 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-10-20 16:35:13 -0500 |
commit | 9c0ad3248ff89dc9c9dc9eed193ce6fd378d85fa (patch) | |
tree | 03c9d5d95b775a47a62e3e0898dfef2bbbc3212a /tests | |
parent | d5e0ab8715eff1c16dedb3f60fa32c480153db69 (diff) | |
download | toybox-9c0ad3248ff89dc9c9dc9eed193ce6fd378d85fa.tar.gz |
Add special "touch -" behavior and require an argument.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/touch.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/touch.test b/tests/touch.test index 1b71c5eb..263e9a0f 100755 --- a/tests/touch.test +++ b/tests/touch.test @@ -32,6 +32,9 @@ testing "-t seconds" \ "touch -t 201201231234.56 walrus && date -r walrus +%Y%m%d-%H%M%S.%N" \ "20120123-123456.000000000\n" "" "" +testing "-t -" "touch -t 200109081946.40 - > walrus && date -r walrus +%s" \ + "1000000000\n" "" "" + testing "-t nanoseconds" \ "touch -t 201201231234.56123456789 walrus && date -r walrus +%Y%m%d-%H%M%S.%N" \ "20120123-123456.123456789\n" "" "" |