Use su to allow tests 3, 6, 17, 18, 19, 21 and 25 to work as root, making testing easier
This commit is contained in:
@@ -123,6 +123,7 @@ char *argv[];
|
||||
|
||||
sync();
|
||||
if (geteuid() == 0 || getuid() == 0) {
|
||||
execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test17", NULL);
|
||||
printf("Test 17 cannot run as root; test aborted\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user