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:
@@ -34,7 +34,9 @@ char *argv[];
|
||||
int i, m = 0xFFFF;
|
||||
|
||||
sync();
|
||||
|
||||
if (geteuid() == 0 || getuid() == 0) {
|
||||
execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test3", NULL);
|
||||
printf("Test 3 cannot run as root; test aborted\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user