mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Don't try to compile test_adjust_sql_options on windows, it won't link.
Also fix the CMake build by linking gnc-backend-dbi for test-backend-dbi.
This commit is contained in:
parent
3b17b44ef7
commit
c1ad6154ab
@ -11,7 +11,7 @@ SET(BACKEND_DBI_TEST_INCLUDE_DIRS
|
|||||||
${LIBDBI_INCLUDE_PATH}
|
${LIBDBI_INCLUDE_PATH}
|
||||||
${GLIB2_INCLUDE_DIRS}
|
${GLIB2_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
SET(BACKEND_DBI_TEST_LIBS gnc-backend-sql gncmod-engine gncmod-test-engine gnc-qof test-core ${LIBDBI_LIBRARY})
|
SET(BACKEND_DBI_TEST_LIBS gnc-backend-sql gnc-backend-dbi gncmod-engine gncmod-test-engine gnc-qof test-core ${LIBDBI_LIBRARY})
|
||||||
|
|
||||||
SET(test_dbi_backend_SOURCES
|
SET(test_dbi_backend_SOURCES
|
||||||
test-backend-dbi.c
|
test-backend-dbi.c
|
||||||
@ -31,4 +31,4 @@ IF (NOT WIN32)
|
|||||||
TEST_PGSQL_URL=\"${TEST_PGSQL_URL}\"
|
TEST_PGSQL_URL=\"${TEST_PGSQL_URL}\"
|
||||||
DBI_TEST_XML_FILENAME=\"${CMAKE_CURRENT_SOURCE_DIR}/test-dbi.xml\"
|
DBI_TEST_XML_FILENAME=\"${CMAKE_CURRENT_SOURCE_DIR}/test-dbi.xml\"
|
||||||
)
|
)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
@ -596,7 +596,7 @@ test_dbi_business_store_and_reload (Fixture *fixture, gconstpointer pData)
|
|||||||
qof_session_end (session_3);
|
qof_session_end (session_3);
|
||||||
qof_session_destroy (session_3);
|
qof_session_destroy (session_3);
|
||||||
}
|
}
|
||||||
|
#ifndef G_OS_WIN32
|
||||||
static void
|
static void
|
||||||
test_adjust_sql_options_string(void)
|
test_adjust_sql_options_string(void)
|
||||||
{
|
{
|
||||||
@ -632,7 +632,7 @@ test_adjust_sql_options_string(void)
|
|||||||
g_free( adjusted_str );
|
g_free( adjusted_str );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif //G_OS_WIN32
|
||||||
static void
|
static void
|
||||||
create_dbi_test_suite (gchar *dbm_name, gchar *url)
|
create_dbi_test_suite (gchar *dbm_name, gchar *url)
|
||||||
{
|
{
|
||||||
@ -677,7 +677,8 @@ test_suite_gnc_backend_dbi (void)
|
|||||||
g_setenv ("PGOPTIONS", "-c client_min_messages=WARNING", FALSE);
|
g_setenv ("PGOPTIONS", "-c client_min_messages=WARNING", FALSE);
|
||||||
create_dbi_test_suite ("postgres", TEST_PGSQL_URL);
|
create_dbi_test_suite ("postgres", TEST_PGSQL_URL);
|
||||||
}
|
}
|
||||||
|
#ifndef G_OS_WIN32
|
||||||
GNC_TEST_ADD_FUNC( suitename, "adjust sql options string localtime",
|
GNC_TEST_ADD_FUNC( suitename, "adjust sql options string localtime",
|
||||||
test_adjust_sql_options_string );
|
test_adjust_sql_options_string );
|
||||||
|
#endif //G_OS_WIN32
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user