Skip to content

Commit

Permalink
Add assertion for the return value of NtOpenFile in tvfs_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jun 5, 2024
1 parent fb439ce commit ba8064c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/tvfs_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ TEST_F(USVFSTest, NtQueryDirectoryFileRegularFile)
, FILE_GENERIC_READ
, FILE_SHARE_READ | FILE_SHARE_WRITE
, OPEN_EXISTING);
EXPECT_NE(INVALID_HANDLE_VALUE, hdl);

IO_STATUS_BLOCK status;
char buffer[1024];
Expand Down Expand Up @@ -333,6 +334,7 @@ TEST_F(USVFSTest, NtQueryDirectoryFileFindsVirtualFile)
, FILE_GENERIC_READ
, FILE_SHARE_READ | FILE_SHARE_WRITE
, OPEN_EXISTING);
EXPECT_NE(INVALID_HANDLE_VALUE, hdl);

IO_STATUS_BLOCK status;
char buffer[1024];
Expand Down

0 comments on commit ba8064c

Please sign in to comment.