From c2034046725da723175ce59b448c8aa2d2a0c6bc Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 25 Jan 2016 15:53:29 -0800 Subject: [PATCH] winfsp-tests: WIP --- build/VStudio/testing/winfsp-tests.vcxproj | 2 +- .../testing/winfsp-tests.vcxproj.filters | 2 +- .../{fileinfo-test.c => info-test.c} | 18 +++++++++--------- tst/winfsp-tests/winfsp-tests.c | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) rename tst/winfsp-tests/{fileinfo-test.c => info-test.c} (92%) diff --git a/build/VStudio/testing/winfsp-tests.vcxproj b/build/VStudio/testing/winfsp-tests.vcxproj index abfdc6b8..4eb91c41 100644 --- a/build/VStudio/testing/winfsp-tests.vcxproj +++ b/build/VStudio/testing/winfsp-tests.vcxproj @@ -181,7 +181,7 @@ TurnOffAllWarnings - + diff --git a/build/VStudio/testing/winfsp-tests.vcxproj.filters b/build/VStudio/testing/winfsp-tests.vcxproj.filters index 035d49e8..42f4eabc 100644 --- a/build/VStudio/testing/winfsp-tests.vcxproj.filters +++ b/build/VStudio/testing/winfsp-tests.vcxproj.filters @@ -34,7 +34,7 @@ Source - + Source diff --git a/tst/winfsp-tests/fileinfo-test.c b/tst/winfsp-tests/info-test.c similarity index 92% rename from tst/winfsp-tests/fileinfo-test.c rename to tst/winfsp-tests/info-test.c index 37c52839..a9d69bd9 100644 --- a/tst/winfsp-tests/fileinfo-test.c +++ b/tst/winfsp-tests/info-test.c @@ -13,7 +13,7 @@ extern int NtfsTests; extern int WinFspDiskTests; extern int WinFspNetTests; -void getinfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeout) +void getfileinfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeout) { void *memfs = memfs_start_ex(Flags, FileInfoTimeout); @@ -118,27 +118,27 @@ void getinfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeout) memfs_stop(memfs); } -void getinfo_test(void) +void getfileinfo_test(void) { if (NtfsTests) { WCHAR DirBuf[MAX_PATH] = L"\\\\?\\"; GetCurrentDirectoryW(MAX_PATH - 4, DirBuf + 4); - getinfo_dotest(-1, DirBuf, 0); + getfileinfo_dotest(-1, DirBuf, 0); } if (WinFspDiskTests) { - getinfo_dotest(MemfsDisk, 0, 0); - getinfo_dotest(MemfsDisk, 0, 1000); + getfileinfo_dotest(MemfsDisk, 0, 0); + getfileinfo_dotest(MemfsDisk, 0, 1000); } if (WinFspNetTests) { - getinfo_dotest(MemfsNet, L"\\\\memfs\\share", 0); - getinfo_dotest(MemfsNet, L"\\\\memfs\\share", 1000); + getfileinfo_dotest(MemfsNet, L"\\\\memfs\\share", 0); + getfileinfo_dotest(MemfsNet, L"\\\\memfs\\share", 1000); } } -void getinfo_tests(void) +void info_tests(void) { - TEST(getinfo_test); + TEST(getfileinfo_test); } diff --git a/tst/winfsp-tests/winfsp-tests.c b/tst/winfsp-tests/winfsp-tests.c index 383b5ff6..cfb8ec10 100644 --- a/tst/winfsp-tests/winfsp-tests.c +++ b/tst/winfsp-tests/winfsp-tests.c @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) TESTSUITE(timeout_tests); TESTSUITE(memfs_tests); TESTSUITE(create_tests); - TESTSUITE(getinfo_tests); + TESTSUITE(info_tests); tlib_run_tests(argc, argv); return 0;