9 char *cwd
= get_current_dir_name ();
12 puts ("get_current_dir_name failed");
16 /* Make sure we do not find a binary with the name we are going to
18 setenv ("PATH", cwd
, 1);
20 static const char prog
[] = "does-not-exist";
22 execlp (prog
, prog
, NULL
);
26 printf ("errno = %d (%m), expected ENOENT\n", errno
);
33 #define TEST_FUNCTION do_test ()
34 #include "../test-skeleton.c"