summaryrefslogtreecommitdiff
path: root/tests/options-syntax.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options-syntax.test')
-rwxr-xr-xtests/options-syntax.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/options-syntax.test b/tests/options-syntax.test
index f6fcd95f5..328eb30c5 100755
--- a/tests/options-syntax.test
+++ b/tests/options-syntax.test
@@ -290,6 +290,13 @@ check_e "invalid decode-pids ''" -e decode-pids=
check_e "invalid decode-pids 'chdir'" --decode-pids=chdir
check_e "invalid decode-pids 'gettid'" -e decode-pid=comm,gettid
+check_h "must have PROG [ARGS] or -p PID" -e trace-fds=0
+check_h "must have PROG [ARGS] or -p PID" -e trace-fd=1,2,3
+check_h "must have PROG [ARGS] or -p PID" -e fd='!1'
+check_h "must have PROG [ARGS] or -p PID" -e fds='!0,2147483647'
+check_e "invalid descriptor '-1'" --trace-fds=-1
+check_e "invalid descriptor '2147483648'" --trace-fd=2147483648
+
case "$STRACE_NATIVE_ARCH" in
x86_64)
check_h "must have PROG [ARGS] or -p PID" -e trace=getcwd@64