]> granicus.if.org Git - strace/commitdiff
strace-S.test: check "-S name"
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 10 May 2016 00:03:59 +0000 (00:03 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 10 May 2016 00:39:17 +0000 (00:39 +0000)
* tests/strace-S.test: Add a check for "-c -S name" output.

tests/strace-S.test

index 7b188aa67bd8b35612a0f0ae2eec4153c6960480..0ffec3037c917af6d48b3d0b8886177d60df675b 100755 (executable)
@@ -24,5 +24,6 @@ test_c()
 
 c='[[:space:]]\+\([^[:space:]]\+\)'
 test_c calls '-n -r' '/^[[:space:]]\+[0-9]/ s/^'"$c$c$c$c"'[[:space:]].*/\4/p'
+test_c name '' '/^[[:space:]]\+[0-9]/ s/^'"$c$c$c$c"'\([[:space:]]\+[0-9]\+\)\?'"$c"'$/\6/p'
 
 rm -f "$OUT"