1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

fixed test expectation

This commit is contained in:
Falk Werner 2020-02-16 22:58:28 +01:00
parent bc1b5343df
commit 8f40f73072

View File

@ -138,7 +138,7 @@ TEST(server_config, set_mountpoint)
wf_server_config_dispose(config); wf_server_config_dispose(config);
} }
TEST(server_cnfig, set_mounpoint_factory) TEST(server_config, set_mounpoint_factory)
{ {
wf_server_config * config = wf_server_config_create(); wf_server_config * config = wf_server_config_create();
ASSERT_NE(nullptr, config); ASSERT_NE(nullptr, config);
@ -149,7 +149,7 @@ TEST(server_cnfig, set_mounpoint_factory)
int value = 42; int value = 42;
void * user_data = reinterpret_cast<void*>(&value); void * user_data = reinterpret_cast<void*>(&value);
wf_server_config_set_mountpoint_factory(config, &create_mountpoint, user_data); wf_server_config_set_mountpoint_factory(config, &create_mountpoint, user_data);
ASSERT_NE(&create_mountpoint, config->mountpoint_factory.create_mountpoint); ASSERT_EQ(&create_mountpoint, config->mountpoint_factory.create_mountpoint);
ASSERT_EQ(user_data, config->mountpoint_factory.user_data); ASSERT_EQ(user_data, config->mountpoint_factory.user_data);
ASSERT_EQ(nullptr, config->mountpoint_factory.dispose); ASSERT_EQ(nullptr, config->mountpoint_factory.dispose);