From 289b92de513aa1edce6246a1ceac23e72e81d979 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 6 May 2001 14:09:10 +0000 Subject: allow env variable TESTDIR for directory for fcntl_lock test (This used to be commit b6645402b12cf8eaa7d9edf7dba3fae1f5ec0356) --- source3/tests/fcntl_lock.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit