Fix test-import-backend failure.

Linking gnc-engine caused an ODR violation in gnc-date.cpp. Instead
fake qof_log_check() in gtest-import-backend.cpp.
This commit is contained in:
John Ralls 2021-09-15 10:19:20 -07:00
parent 1409c1c5f5
commit 5f8e0347ec
2 changed files with 7 additions and 1 deletions

View File

@ -48,7 +48,6 @@ set(gtest_import_backend_INCLUDE_DIRS
) )
set(gtest_import_backend_LIBS set(gtest_import_backend_LIBS
gnc-engine
PkgConfig::GTK3 PkgConfig::GTK3
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${GMODULE_LDFLAGS} ${GMODULE_LDFLAGS}

View File

@ -61,6 +61,13 @@ qof_log_prettify (const char *name)
return name; return name;
} }
// Fake qof_log_check suppresses logging.
gboolean
qof_log_check(QofLogModule log_module, QofLogLevel log_level)
{
return FALSE;
}
// fake function from engine-helpers.c // fake function from engine-helpers.c
// this is a slightly modified version of the original function // this is a slightly modified version of the original function
const char * const char *