Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171818468
D59594.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D59594.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D59594: tests/truss: xfail accepted ABIs test if linux(4) not implemented
Attached
Detach File
Event Timeline
Log In to Comment