diff --git a/build/VStudio/testing/winfsp-tests.vcxproj b/build/VStudio/testing/winfsp-tests.vcxproj index 4084219c..4c5555b8 100644 --- a/build/VStudio/testing/winfsp-tests.vcxproj +++ b/build/VStudio/testing/winfsp-tests.vcxproj @@ -183,6 +183,7 @@ + diff --git a/build/VStudio/testing/winfsp-tests.vcxproj.filters b/build/VStudio/testing/winfsp-tests.vcxproj.filters index b98a3e24..b8248deb 100644 --- a/build/VStudio/testing/winfsp-tests.vcxproj.filters +++ b/build/VStudio/testing/winfsp-tests.vcxproj.filters @@ -52,6 +52,9 @@ Source + + Source + diff --git a/tst/winfsp-tests/eventlog-test.c b/tst/winfsp-tests/eventlog-test.c new file mode 100644 index 00000000..9a4610c0 --- /dev/null +++ b/tst/winfsp-tests/eventlog-test.c @@ -0,0 +1,16 @@ +#include +#include + +void eventlog_test(void) +{ + /* this is not a real test! */ + + FspEventLog(EVENTLOG_INFORMATION_TYPE, L"EventLog %s message", L"informational"); + FspEventLog(EVENTLOG_WARNING_TYPE, L"EventLog %s message", L"warning"); + FspEventLog(EVENTLOG_ERROR_TYPE, L"EventLog %s message", L"error"); +} + +void eventlog_tests(void) +{ + TEST_OPT(eventlog_test); +} diff --git a/tst/winfsp-tests/winfsp-tests.c b/tst/winfsp-tests/winfsp-tests.c index cc367ee5..8fbe68a1 100644 --- a/tst/winfsp-tests/winfsp-tests.c +++ b/tst/winfsp-tests/winfsp-tests.c @@ -6,6 +6,7 @@ int WinFspNetTests = 1; int main(int argc, char *argv[]) { + TESTSUITE(eventlog_tests); TESTSUITE(path_tests); TESTSUITE(mount_tests); TESTSUITE(timeout_tests);