Test case registration fix test Issue 278 (#279)

This commit is contained in:
Grzegorz Wawiorko
2019-05-23 13:58:05 +02:00
committed by Kévin Petit
parent f60f3ef9b5
commit 8dc3ae30d0

View File

@@ -51,7 +51,7 @@ struct test_case_registration
{
test_case_registration(const std::string& name, const basefn ptr)
{
::autotest::test_suite::global_test_suite().add(test_definition({ptr, name.c_str()}));
::autotest::test_suite::global_test_suite().add(test_definition({ptr, strdup(name.c_str())}));
}
};