aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/umovestr2.c3
-rwxr-xr-xtests/umovestr2.test9
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/umovestr2.c b/tests/umovestr2.c
index a1ca9fd1..c7bd42f9 100644
--- a/tests/umovestr2.c
+++ b/tests/umovestr2.c
@@ -23,8 +23,9 @@ main(void)
char *envp[] = { addr, NULL };
execve("", argv, envp);
- printf("execve\\(\"\", \\[\\], \\[\"%0*u\"\\]\\) = -1 .*\n",
+ printf("execve(\"\", [], [\"%0*u\"]) = -1 ENOENT (No such file or directory)\n",
(int) tail_len - 1, 0);
+ puts("+++ exited with 0 +++");
return 0;
}
diff --git a/tests/umovestr2.test b/tests/umovestr2.test
index 70589387..2e9fee44 100755
--- a/tests/umovestr2.test
+++ b/tests/umovestr2.test
@@ -5,11 +5,14 @@
. "${srcdir=.}/init.sh"
OUT="$LOG.out"
+EXP="$LOG.exp"
run_prog > /dev/null
-run_strace -veexecve -s262144 $args > "$OUT"
-match_grep "$LOG" "$OUT"
+run_strace -veexecve -s262144 $args > "$EXP"
+check_prog sed
+sed 1d < "$LOG" > "$OUT"
+match_diff "$OUT" "$EXP"
-rm -f "$OUT"
+rm -f "$EXP" "$OUT"
exit 0