From e9ea5f21a90cca3623115a3c901d033b81f97eb6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 13 Dec 2015 23:46:22 +0000 Subject: Fix Windows file locking to work with MSVC --- test/bbackupd/testbbackupd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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); -- cgit v1.2.3