* tests/strace-E.c: New file. * tests/strace-E.test: New test. * tests/.gitignore: Add strace-E. * tests/Makefile.am (check_PROGRAMS): Likewise. (MISC_TESTS): Add strace-E.test. --- tests/.gitignore | 1 + tests/Makefile.am | 2 ++ tests/strace-E.c | 10 ++++++++++ tests/strace-E.test | 10 ++++++++++ 4 files changed, 23 insertions(+) create mode 100644 tests/strace-E.c create mode 100755 tests/strace-E.test
diff --git a/tests/.gitignore b/tests/.gitignore index 8f4d6f0..b99ce77 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -236,6 +236,7 @@ stat stat64 statfs statfs64 +strace-E swap symlink symlinkat diff --git a/tests/Makefile.am b/tests/Makefile.am index 9eba306..1764113 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -289,6 +289,7 @@ check_PROGRAMS = \ stat64 \ statfs \ statfs64 \ + strace-E \ swap \ symlink \ symlinkat \ @@ -643,6 +644,7 @@ MISC_TESTS = \ qual_syscall.test \ redirect.test \ restart_syscall.test \ + strace-E.test \ strace-S.test \ strace-T.test \ strace-V.test \ diff --git a/tests/strace-E.c b/tests/strace-E.c new file mode 100644 index 0000000..e557913 --- /dev/null +++ b/tests/strace-E.c @@ -0,0 +1,10 @@ +#include <stdio.h> + +int +main() +{ + printf("execve\\(\"./strace-E\", \\[\"./strace-E\"\\], " + "\\[.*\"option_E_var=OPTION_E_VAL\".*\\) += 0\n"); + + return 0; +} diff --git a/tests/strace-E.test b/tests/strace-E.test new file mode 100755 index 0000000..ccb7546 --- /dev/null +++ b/tests/strace-E.test @@ -0,0 +1,10 @@ +#!/bin/sh + +# Check -E option. + +. "${srcdir=.}/init.sh" + +run_prog > /dev/null +run_strace -E option_E_var=OPTION_E_VAL -v $args > "$EXP" +match_grep "$LOG" "$EXP" +rm -f "$EXP" -- 1.8.3.1 ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel