winfsp-tests: eventlog-test.c

This commit is contained in:
Bill Zissimopoulos 2016-05-06 15:58:33 -07:00
parent 9addfa5899
commit 125b612c9f
4 changed files with 21 additions and 0 deletions

View File

@ -183,6 +183,7 @@
<ClCompile Include="..\..\..\tst\memfs\memfs.cpp" />
<ClCompile Include="..\..\..\tst\winfsp-tests\create-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\dirctl-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\eventlog-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\flush-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\info-test.c" />
<ClCompile Include="..\..\..\tst\winfsp-tests\lock-test.c" />

View File

@ -52,6 +52,9 @@
<ClCompile Include="..\..\..\tst\memfs\memfs.cpp">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\..\..\tst\winfsp-tests\eventlog-test.c">
<Filter>Source</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\ext\tlib\testsuite.h">

View File

@ -0,0 +1,16 @@
#include <winfsp/winfsp.h>
#include <tlib/testsuite.h>
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);
}

View File

@ -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);