git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[samba.git]
/
source
/
tests
/
fcntl_lock.c
diff --git
a/source/tests/fcntl_lock.c
b/source/tests/fcntl_lock.c
index d03efb35b33b9940084e6b64227ff3ecd01b2ebd..3dc12a389739fbeb6cce4d87a2e9b1b961c2f86d 100644
(file)
--- a/
source/tests/fcntl_lock.c
+++ b/
source/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);