mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
1409c1c5f5
commit
5f8e0347ec
@ -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}
|
||||||
|
@ -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 *
|
||||||
|
Loading…
Reference in New Issue
Block a user