summaryrefslogtreecommitdiff
path: root/tests/options-syntax.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options-syntax.test')
-rwxr-xr-xtests/options-syntax.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/options-syntax.test b/tests/options-syntax.test
index b37819b5e..86cff2845 100755
--- a/tests/options-syntax.test
+++ b/tests/options-syntax.test
@@ -40,13 +40,15 @@ check_h "must have PROG [ARGS] or -p PID" --absolute-timestamps=s,
check_h "must have PROG [ARGS] or -p PID" --absolute-timestamps=,,
check_h "must have PROG [ARGS] or -p PID" --absolute-timestamps=s,,none
check_h "must have PROG [ARGS] or -p PID" --timestamps=strftime=
-check_h "must have PROG [ARGS] or -p PID" --timestamps --absolute-timestamps=ns --timestamps=none --absolute-timestamps=format:time,precision:s --timestamps=ns,format:unix --absolute-timestamps=us,precision:ms,unix,precision:ns --timestamps=format:none,time,precision:us --absolute-timestamps=format:strftime=%r
+check_h "must have PROG [ARGS] or -p PID" --timestamps --absolute-timestamps=ns --timestamps=none --absolute-timestamps=format:time,precision:s --timestamps=ns,format:unix --absolute-timestamps=us,precision:ms,unix,precision:ns --timestamps=format:none,time,precision:us --absolute-timestamps=format:strftime=%r --timestamps=iso,iso8601,format:iso,format:iso8601
check_h "invalid --absolute-timestamps argument: 'ss'" --absolute-timestamps=ss
check_h "invalid --absolute-timestamps argument: 'strftime'" --absolute-timestamps=strftime
+check_h "invalid --absolute-timestamps argument: 'format:iso860'" --absolute-timestamps=format:iso860
check_h "invalid --timestamps argument: 'format:s'" --timestamps=format:s
check_h "invalid --timestamps argument: 's,non'" --timestamps=s,non
check_h "invalid --timestamps argument: 'precision:strftime='" --timestamps=precision:strftime=
check_h "invalid --timestamps argument: 'precision:none'" --timestamps=precision:none
+check_h "invalid --timestamps argument: 'precision:iso'" --timestamps=precision:iso
check_e '-t and --absolute-timestamps cannot be provided simultaneously' -t --timestamps -p $$
check_e '-t and --absolute-timestamps cannot be provided simultaneously' --absolute-timestamps -ttt -p $$
check_e '-t and --absolute-timestamps cannot be provided simultaneously' -t --timestamps=ns -t -p $$