[PATCH 4/4] tests: add option_T_t.test

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


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

diff --git a/tests/.gitignore b/tests/.gitignore
index 9e45390..408fc86 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -154,3 +154,4 @@ xettimeofday
 option_d_r
 option_u
 option_ttt
+option_T_t
diff --git a/tests/Makefile.am b/tests/Makefile.am
index aadc6af..db53475 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -382,6 +382,7 @@ TESTS = \
 	option_d_r.test \
 	option_u.test \
 	option_ttt.test \
+	option_T_t.test \
 	$(LIBUNWIND_TESTS)
 
 XFAIL_TESTS_ =
diff --git a/tests/option_T_t.expected b/tests/option_T_t.expected
new file mode 100644
index 0000000..d296626
--- /dev/null
+++ b/tests/option_T_t.expected
@@ -0,0 +1 @@
+^[0-9]{2}\:[0-9]{2}\:[0-9]{2} execve.*<[0-9]*\.[0-9]*>
diff --git a/tests/option_T_t.test b/tests/option_T_t.test
new file mode 100755
index 0000000..b301bdc
--- /dev/null
+++ b/tests/option_T_t.test
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Check option -T -t.
+
+. "${srcdir=.}/init.sh"
+
+run_prog echo "test -T -t"
+run_strace -T -t $args
+match_grep
+exit 0
-- 
1.8.3.1







More information about the Strace-devel mailing list