[PATCH 3/3] tests: check -H option
JingPiao Chen
chenjingpiao at gmail.com
Fri Mar 31 11:20:53 UTC 2017
* tests/color_output.test: New test.
* tests/Makefile.am (DECODER_TESTS): Add color_output.test.
---
tests/Makefile.am | 1 +
tests/color_output.test | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
create mode 100755 tests/color_output.test
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c6c28cc..6538cb5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -508,6 +508,7 @@ DECODER_TESTS = \
clock_adjtime.test \
clock_nanosleep.test \
clock_xettime.test \
+ color_output.test \
copy_file_range.test \
creat.test \
delete_module.test \
diff --git a/tests/color_output.test b/tests/color_output.test
new file mode 100755
index 0000000..242c647
--- /dev/null
+++ b/tests/color_output.test
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Check -H option
+
+. "${srcdir=.}/init.sh"
+
+try_run_prog "./fork-f" && {
+ run_strace -H -a26 -qq -f -echdir -e signal=none ./fork-f > "$EXP"
+ match_diff "$LOG" "$EXP"
+}
+
+try_run_prog "./vfork-f" && {
+ run_strace -H -a26 -qq -f -echdir -e signal=none ./vfork-f > "$EXP"
+ match_diff "$LOG" "$EXP"
+}
+
+rm "$EXP"
--
2.7.4
More information about the Strace-devel
mailing list