winfsp unit tests and fixes
This commit is contained in:
parent
884d2d6890
commit
ec2b8e1854
@ -22,7 +22,7 @@
|
||||
#if defined(_WIN32)
|
||||
|
||||
//
|
||||
// Implemented test cased based on WinFsp tests
|
||||
// Implemented test cases based on WinFsp tests:
|
||||
// https://github.com/winfsp/winfsp/blob/v2.0/tst/winfsp-tests
|
||||
//
|
||||
#include "fixtures/winfsp_fixture.hpp"
|
||||
@ -67,7 +67,7 @@ TYPED_TEST(winfsp_test, create_always_succeeds_when_file_exists) {
|
||||
auto file_path{
|
||||
utils::path::combine(this->mount_location, {"test_file_0"}),
|
||||
};
|
||||
auto handle = ::CreateFileA(file_path.cstr(), GENERIC_READ | GENERIC_WRITE,
|
||||
auto handle = ::CreateFileA(file_path.c_str(), GENERIC_READ | GENERIC_WRITE,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE, 0,
|
||||
CREATE_ALWAYS, FILE_ATTRIBUTE_HIDDEN, 0);
|
||||
EXPECT_NE(INVALID_HANDLE_VALUE, handle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user