7 # define EXECVP(file, argv) execvp (file, argv)
13 char *cwd
= get_current_dir_name ();
16 puts ("get_current_dir_name failed");
20 /* Make sure we do not find a binary with the name we are going to
22 setenv ("PATH", cwd
, 1);
24 char *argv
[] = { (char *) "does-not-exist", NULL
};
26 EXECVP (argv
[0], argv
);
30 printf ("errno = %d (%m), expected ENOENT\n", errno
);
37 #define TEST_FUNCTION do_test ()
38 #include "../test-skeleton.c"