diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-05-06 14:09:10 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-05-06 14:09:10 +0000 |
commit | 289b92de513aa1edce6246a1ceac23e72e81d979 (patch) | |
tree | 2e23c8173baba7a8fdb06a821cf79cf367801238 | |
parent | a808ca914f74b997d222d47159dc0185511d1862 (diff) | |
download | samba-289b92de513aa1edce6246a1ceac23e72e81d979.tar.gz samba-289b92de513aa1edce6246a1ceac23e72e81d979.tar.bz2 samba-289b92de513aa1edce6246a1ceac23e72e81d979.zip |
allow env variable TESTDIR for directory for fcntl_lock test
(This used to be commit b6645402b12cf8eaa7d9edf7dba3fae1f5ec0356)
-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); |