test74: allow to be run from source directory
A small fix to allow this test to be run from its original source directory location, in addition to its installed location. Change-Id: I4b7afed14ba02b1bea8d9c5f65bc96698a279188
This commit is contained in:
parent
3f862305f8
commit
b52b83f927
@ -395,7 +395,9 @@ static void basic_regression(void)
|
||||
*/
|
||||
|
||||
fd1 = open("../testsh1", O_RDONLY);
|
||||
if (fd1 < 0) fd1 = open("../testsh1.sh", O_RDONLY);
|
||||
fd2 = open("../testsh2", O_RDONLY);
|
||||
if (fd2 < 0) fd2 = open("../testsh2.sh", O_RDONLY);
|
||||
if(fd1 < 0 || fd2 < 0) { e(2); }
|
||||
|
||||
/* just check that we can't mmap() a file writable */
|
||||
|
Loading…
x
Reference in New Issue
Block a user