diff --git a/tst/winfsp-tests/info-test.c b/tst/winfsp-tests/info-test.c index f81e0891..27e4d9c5 100644 --- a/tst/winfsp-tests/info-test.c +++ b/tst/winfsp-tests/info-test.c @@ -149,6 +149,13 @@ void getvolinfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeout) DWORD MaxComponentLength; DWORD FileSystemFlags; WCHAR FileSystemNameBuf[MAX_PATH]; + DWORD SectorsPerCluster; + DWORD BytesPerSector; + DWORD FreeClusters; + DWORD TotalClusters; + ULARGE_INTEGER CallerFreeBytes; + ULARGE_INTEGER TotalBytes; + ULARGE_INTEGER FreeBytes; StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\", Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs)); @@ -167,6 +174,12 @@ void getvolinfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeout) ASSERT(0 == wcscmp(FileSystemNameBuf, L"WinFsp")); } + Success = GetDiskFreeSpaceW(FilePath, &SectorsPerCluster, &BytesPerSector, &FreeClusters, &TotalClusters); + ASSERT(Success); + + Success = GetDiskFreeSpaceExW(FilePath, &CallerFreeBytes, &TotalBytes, &FreeBytes); + ASSERT(Success); + memfs_stop(memfs); }