diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-12-13 23:46:22 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-12-14 00:06:03 +0000 |
commit | e9ea5f21a90cca3623115a3c901d033b81f97eb6 (patch) | |
tree | ff69f071656d2656d91b247d01195b75b000b945 /test | |
parent | 004c1d3b39f045f0f3935f6ca7cb9cb1960573ea (diff) |
Fix Windows file locking to work with MSVC
Diffstat (limited to 'test')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index a9855250..f99ffcb4 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -3899,7 +3899,7 @@ bool test_locked_file_behaviour() // and the appropriate error is reported. HANDLE handle = openfile("testfiles/TestDir1/f1.dat", - O_LOCK, 0); + BOX_OPEN_LOCK, 0); TEST_THAT_OR(handle != INVALID_HANDLE_VALUE, FAIL); { @@ -3928,7 +3928,7 @@ bool test_locked_file_behaviour() // open the file again, compare and check that compare // reports the correct error message (and finishes) handle = openfile("testfiles/TestDir1/f1.dat", - O_LOCK, 0); + BOX_OPEN_LOCK, 0); TEST_THAT_OR(handle != INVALID_HANDLE_VALUE, FAIL); TEST_COMPARE(Compare_Error); |