mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 01:51:29 +00:00
Authors of this port:
Petr Pavlu setup@dagobah.cz
Ivo Raisr ivosh@ivosh.net
Theo Schlossnagle theo@omniti.com
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
14 lines
367 B
C
14 lines
367 B
C
#include <assert.h>
|
|
#include <unistd.h>
|
|
|
|
int main ( int argc, char** argv, char** envp )
|
|
{
|
|
char* null_filename = NULL;
|
|
char *const argv_exe[] = {"true", NULL};
|
|
|
|
execve(null_filename, NULL, NULL);
|
|
// Solaris requires non-NULL argv param (this is not necessary on Linux)
|
|
execve("../../tests/true", argv_exe, envp);
|
|
assert(0); // shouldn't get here
|
|
}
|