Page MenuHomeFreeBSD

D59594.diff
No OneTemporary

D59594.diff

diff --git a/usr.bin/truss/tests/truss_test.sh b/usr.bin/truss/tests/truss_test.sh
--- a/usr.bin/truss/tests/truss_test.sh
+++ b/usr.bin/truss/tests/truss_test.sh
@@ -209,13 +209,6 @@
-e match:'matches no known system call' \
truss -o out2 -t 'raed*' cat input
- # Names of every ABI truss knows are accepted without complaint,
- # whether or not that ABI is the one being traced here.
- for name in read openat linux_write linux_newstat compat11.stat; do
- atf_check -s exit:0 -o inline:"hello\n" -e empty \
- truss -o out3 -t "$name" cat input
- done
-
# A number is the way to name a system call by number; '#' is not
# a prefix truss accepts, so it is diagnosed like any other typo.
atf_check -s exit:0 -o inline:"hello\n" \
@@ -223,6 +216,34 @@
truss -o out4 -t '#237' cat input
}
+atf_test_case accepted_abis
+accepted_abis_head()
+{
+ atf_set descr "all ABIs known to truss are accepted by -t filter"
+}
+accepted_abis_body()
+{
+ require_truss
+ printf 'hello\n' > input
+
+ # Names of every ABI truss knows are accepted without complaint,
+ # whether or not that ABI is the one being traced here.
+ for name in read openat compat11.stat; do
+ atf_check -s exit:0 -o inline:"hello\n" -e empty \
+ truss -o out3 -t "$name" cat input
+ done
+
+ arch="$(uname -p)"
+ if test "$arch" != i386 -a "$arch" != amd64 -a "$arch" != aarch64; then
+ atf_expect_fail "linux(4) support not available on $arch"
+ fi
+
+ for name in linux_write linux_newstat; do
+ atf_check -s exit:0 -o inline:"hello\n" -e empty \
+ truss -o out3 -t "$name" cat input
+ done
+}
+
atf_test_case by_name
by_name_head()
{
@@ -391,6 +412,7 @@
atf_add_test_case by_number
atf_add_test_case bad_number
atf_add_test_case unknown_syscall
+ atf_add_test_case accepted_abis
atf_add_test_case by_name
atf_add_test_case by_pattern
atf_add_test_case group

File Metadata

Mime Type
text/plain
Expires
Mon, Sep 14, 6:58 PM (52 m, 15 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38805768
Default Alt Text
D59594.diff (1 KB)

Event Timeline