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:
parent
6b1ced1674
commit
b6645402b1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user