Fix tests when run as root; use bin account but current directory

This commit is contained in:
Erik van der Kouwe
2010-08-06 12:33:32 +00:00
parent ac9a7f47bd
commit c8f70b8154
8 changed files with 6 additions and 46 deletions

View File

@@ -36,12 +36,6 @@ char *argv[];
sync();
if (geteuid() == 0 || getuid() == 0) {
realpath(argv[0], buffer);
execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", buffer, NULL);
printf("Test 3 cannot run as root; test aborted\n");
exit(1);
}
if (argc == 2) m = atoi(argv[1]);