Julian Seward ac60633d65 Bug 345248 - add support for Solaris OS in valgrind
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
2015-07-21 14:44:28 +00:00

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
}