diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/tests/fcntl_lock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/tests/fcntl_lock.c b/source3/tests/fcntl_lock.c index d03efb35b3..3dc12a3897 100644 --- a/source3/tests/fcntl_lock.c +++ b/source3/tests/fcntl_lock.c @@ -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); |