[PATCH 3/4] tests: add option_ttt.test

Zhou Wenjian zhouwj-fnst at cn.fujitsu.com
Wed Mar 23 08:56:38 UTC 2016


* tests/option_ttt.expected: New file.
* tests/option_ttt.test: New test.
* tests/.gitignore: Add option_ttt.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add option_ttt.test.
---
 tests/.gitignore          |  1 +
 tests/Makefile.am         |  1 +
 tests/option_ttt.expected |  1 +
 tests/option_ttt.test     | 10 ++++++++++
 4 files changed, 13 insertions(+)
 create mode 100644 tests/option_ttt.expected
 create mode 100755 tests/option_ttt.test

diff --git a/tests/.gitignore b/tests/.gitignore
index 01ed01f..9e45390 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -153,3 +153,4 @@ xetpriority
 xettimeofday
 option_d_r
 option_u
+option_ttt
diff --git a/tests/Makefile.am b/tests/Makefile.am
index db3abb5..aadc6af 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -381,6 +381,7 @@ TESTS = \
 	restart_syscall.test \
 	option_d_r.test \
 	option_u.test \
+	option_ttt.test \
 	$(LIBUNWIND_TESTS)
 
 XFAIL_TESTS_ =
diff --git a/tests/option_ttt.expected b/tests/option_ttt.expected
new file mode 100644
index 0000000..b2c264e
--- /dev/null
+++ b/tests/option_ttt.expected
@@ -0,0 +1 @@
+^[0-9]*\.[0-9]* execve.*
diff --git a/tests/option_ttt.test b/tests/option_ttt.test
new file mode 100755
index 0000000..f15b9e2
--- /dev/null
+++ b/tests/option_ttt.test
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Check option -ttt.
+
+. "${srcdir=.}/init.sh"
+
+run_prog echo "test -ttt"
+run_strace -ttt $args
+match_grep
+exit 0
-- 
1.8.3.1







More information about the Strace-devel mailing list