]> granicus.if.org Git - strace/commitdiff
tests: add -etrace=?... test
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 25 Apr 2017 02:23:12 +0000 (04:23 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 25 Apr 2017 14:35:47 +0000 (14:35 +0000)
Check for some architecture-specific syscalls which are not present
on most architectures.

* gen_tests.in: Add trace_question test.
* tests/trace_question.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.

tests/Makefile.am
tests/gen_tests.in
tests/trace_question.in [new file with mode: 0644]

index 32fc9f08cc20026d42e70f67cf101a52c4d7014f..01846cd6326a9d145b32eddabfcb99d3652f1810 100644 (file)
@@ -338,6 +338,7 @@ EXTRA_DIST = \
        trace_fstat.in \
        trace_fstatfs.in \
        trace_lstat.in \
+       trace_question.in \
        trace_stat.in \
        trace_stat_like.in \
        trace_statfs.in \
index 0af252360aaa041cfbed9f487d5018475c046f0e..de9da6d424bcc9277678600fd796f6a77761efc3 100644 (file)
@@ -308,6 +308,7 @@ times-fail  -a12 -e trace=times
 trace_fstat    test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full
 trace_fstatfs  test_trace_expr '' -e%fstatfs
 trace_lstat    test_trace_expr '' -e%lstat -v -P stat.sample -P /dev/full
+trace_question test_trace_expr '' -e?osf_utimes,?/^pkey_.*
 trace_stat     test_trace_expr '' -e%stat -v -P stat.sample -P /dev/full
 trace_stat_like        test_trace_expr '' -e%%stat -v -P stat.sample -P /dev/full
 trace_statfs   test_trace_expr '' -e%statfs
diff --git a/tests/trace_question.in b/tests/trace_question.in
new file mode 100644 (file)
index 0000000..74d662c
--- /dev/null
@@ -0,0 +1,4 @@
+osf_utimes     -a21
+pkey_alloc     -a17
+pkey_free      -a13
+pkey_mprotect  -a37