[PATCH v10 0/5] [PIDNS] Final

Dmitry V. Levin ldv at altlinux.org
Thu Aug 20 09:34:03 UTC 2020


Hi,

When I tried this patchset on various systems, on those where NS_* ioctl
commands are not supported by the kernel, a lot of tests start failing with
similar diagnostics.  For example:

FAIL: dup-y.gen
===============

+ ../strace -V
+ TIMEOUT='timeout -k 5 -s XCPU 2100'
+ timeout -k 5 -s XCPU 2100 true
+ '[' 1 -eq 0 ']'
+ exec timeout -k 5 -s XCPU 2100 ./dup-y.gen.test
+ run_strace_match_diff -a8 --trace=dup -y
+ args='-a8 --trace=dup -y'
+ '[' -n '-a8 --trace=dup -y' -a '(' -z '-a8 --trace=dup -y' -o -z '' ')' ']'
+ run_prog
+ '[' 0 -eq 0 ']'
+ set -- ../dup-y
+ args=../dup-y
+ ../dup-y
+ run_strace -a8 --trace=dup -y ../dup-y
+ args='-a8 --trace=dup -y ../dup-y'
+ ../../strace -o log -a8 --trace=dup -y ../dup-y
../../strace: NS_* ioctl commands are not supported by the kernel
+ match_diff log exp
+ local output expected error
+ '[' 2 -eq 0 ']'
+ output=log
+ shift
+ '[' 1 -eq 0 ']'
+ expected=exp
+ shift
+ '[' 0 -eq 0 ']'
+ error='../../strace -a8 --trace=dup -y ../dup-y output mismatch'
+ check_prog diff
+ type diff
+ diff -u -- exp log
--- exp	2020-08-20 00:53:31.868741256 +0000
+++ log	2020-08-20 00:53:31.868741256 +0000
@@ -1,5 +1,5 @@
 dup(-1) = -1 EBADF (Bad file descriptor)
-dup(0</dev/null>) = 3</dev/null>
-dup(3</dev/null>) = 4</dev/null>
-dup(9</dev/full>) = 5</dev/full>
+dup(0)  = 3
+dup(3)  = 4
+dup(9)  = 5
 +++ exited with 0 +++
+ fail_ '../../strace -a8 --trace=dup -y ../dup-y output mismatch'
+ warn_ 'dup-y.gen.test: failed test: ../../strace -a8 --trace=dup -y ../dup-y output mismatch'
+ printf '%s\n' 'dup-y.gen.test: failed test: ../../strace -a8 --trace=dup -y ../dup-y output mismatch'
dup-y.gen.test: failed test: ../../strace -a8 --trace=dup -y ../dup-y output mismatch
+ exit 1
FAIL dup-y.gen.test (exit status: 1)


-- 
ldv


More information about the Strace-devel mailing list