]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix execve2 testcase.
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 4 Oct 2011 03:55:04 +0000 (03:55 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 4 Oct 2011 03:55:04 +0000 (03:55 +0000)
First, due to a typo in Makefile.am it was compiled with the wrong flags.
Secondly, the testcase gives an incorrect backtrace on x86 (missing the
line where the error occurs). Updated the generic exp to contain the
correct result and added exp-kfail for platforms where this test fails.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12094

memcheck/tests/Makefile.am
memcheck/tests/execve2.stderr.exp
memcheck/tests/execve2.stderr.exp-kfail [new file with mode: 0644]

index 2c44fcfa26a4b2729371231ff7dc2f7cd467fa27..a8a61805e34867633229b322d3556408f9f6b83c 100644 (file)
@@ -288,7 +288,7 @@ error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
 
 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
 
-execve2_CFLAGS = $(AM_CFLASG) @FLAG_W_NO_NONNULL@
+execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
 
 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
 
index 9e86cbdf843d287bb5f348194d1bea5c28bc3ddc..b87bff8f44ddac44665858fe84ea2de1a93154ec 100644 (file)
@@ -1,4 +1,5 @@
 Syscall param execve(filename) points to unaddressable byte(s)
    ...
+   by 0x........: main (execve2.c:8)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
diff --git a/memcheck/tests/execve2.stderr.exp-kfail b/memcheck/tests/execve2.stderr.exp-kfail
new file mode 100644 (file)
index 0000000..9e86cbd
--- /dev/null
@@ -0,0 +1,4 @@
+Syscall param execve(filename) points to unaddressable byte(s)
+   ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+