1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

allow env variable TESTDIR for directory for fcntl_lock test

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 6b1ced1674
commit b6645402b1

View File

@ -43,6 +43,10 @@ int main(int argc, char *argv[])
struct flock lock;
int fd, ret, status=1;
pid_t pid;
char *testdir = NULL;
testdir = getenv("TESTDIR");
if (testdir) chdir(testdir);
alarm(10);