test: SQLite3 test returns false-positive becasue of unused static variable
check_sqlite.c
has a static declaration of
extern gboolean params_provided;
This variable is used in return statement:
if (! params_provided)
return EXIT_SUCCESS;
else {
g_print ("Test %s\n", (number_failed == 0) ? "Ok" : "failed");
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
There is no other code that changes this variable. Since gboolean
(a la gint
) static variable is initialized to 0
by default the test always returns EXIT_SUCCESS
. This is a bug in test suite. This issue was created to track the activity related to this issue.