diff options
Diffstat (limited to 'databases/libgda6')
-rw-r--r-- | databases/libgda6/files/patch-tests_test-bin-converter.c | 10 | ||||
-rw-r--r-- | databases/libgda6/files/patch-tests_test-input-parsers.c | 77 |
2 files changed, 87 insertions, 0 deletions
diff --git a/databases/libgda6/files/patch-tests_test-bin-converter.c b/databases/libgda6/files/patch-tests_test-bin-converter.c new file mode 100644 index 000000000000..44549f407a73 --- /dev/null +++ b/databases/libgda6/files/patch-tests_test-bin-converter.c @@ -0,0 +1,10 @@ +--- tests/test-bin-converter.c.orig 2025-03-02 15:03:58 UTC ++++ tests/test-bin-converter.c +@@ -67,6 +67,6 @@ main (G_GNUC_UNUSED int argc, G_GNUC_UNUSED char** arg + gda_binary_free (bin); + gda_binary_free (bin2); + +- g_print ("Ok (file size: %ld)\n", bin_length); ++ g_print ("Ok (file size: %ld)\n", (long)bin_length); + return EXIT_SUCCESS; + } diff --git a/databases/libgda6/files/patch-tests_test-input-parsers.c b/databases/libgda6/files/patch-tests_test-input-parsers.c new file mode 100644 index 000000000000..3dd69c4f3881 --- /dev/null +++ b/databases/libgda6/files/patch-tests_test-input-parsers.c @@ -0,0 +1,77 @@ +--- tests/test-input-parsers.c.orig 2025-03-02 15:03:58 UTC ++++ tests/test-input-parsers.c +@@ -170,7 +170,7 @@ test_parse_iso8601_time (void) + " got: HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n", + td.in_string, + td.hour, td.minute, td.second, +- td.fraction, td.timezone, ++ td.fraction, (long)td.timezone, + gda_time_get_hour (time), gda_time_get_minute (time), gda_time_get_second (time), + gda_time_get_fraction (time), gda_time_get_timezone (time)); + g_assert (gda_time_get_hour (time) == td.hour); +@@ -220,12 +220,12 @@ test_parse_iso8601_timestamp (void) + " exp: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n" + " got: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n", + str, td.exp_day, td.exp_month, td.exp_year, +- tt.hour, tt.minute, tt.second, tt.fraction, tt.timezone, ++ tt.hour, tt.minute, tt.second, tt.fraction, (long)tt.timezone, + g_date_time_get_year (timestamp), g_date_time_get_month (timestamp), + g_date_time_get_day_of_month (timestamp), g_date_time_get_hour (timestamp), g_date_time_get_minute (timestamp), + g_date_time_get_second (timestamp), + (glong) (g_date_time_get_seconds (timestamp) - g_date_time_get_second (timestamp)) / 1000000l, +- g_date_time_get_utc_offset (timestamp)/1000000); ++ (long)g_date_time_get_utc_offset (timestamp)/1000000); + + g_free (str); + return FALSE; +@@ -343,7 +343,7 @@ test_time_handler (void) + " got: HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n", + td.in_string, + td.hour, td.minute, td.second, +- td.fraction, td.timezone, ++ td.fraction, (long)td.timezone, + gda_time_get_hour (ptime), gda_time_get_minute (ptime), gda_time_get_second (ptime), + gda_time_get_fraction (ptime), gda_time_get_timezone (ptime)); + return FALSE; +@@ -377,7 +377,7 @@ test_time_handler (void) + " got: HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n", + td.in_string, + td.hour, td.minute, td.second, +- td.fraction, td.timezone, ++ td.fraction, (long)td.timezone, + gda_time_get_hour (ptime), gda_time_get_minute (ptime), gda_time_get_second (ptime), + gda_time_get_fraction (ptime), gda_time_get_timezone (ptime)); + return FALSE; +@@ -430,7 +430,7 @@ test_timestamp_handler (void) + " exp: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\n" + " got: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld (SF=%f) TZ=%ld\n", + td.exp_day, td.exp_month, td.exp_year, +- tt.hour, tt.minute, tt.second, tt.fraction, tt.timezone, ++ tt.hour, tt.minute, tt.second, tt.fraction, (long)tt.timezone, + g_date_time_get_day_of_month (timestamp), + g_date_time_get_month (timestamp), + g_date_time_get_year (timestamp), +@@ -438,7 +438,7 @@ test_timestamp_handler (void) + g_date_time_get_second (timestamp), + (glong) ((g_date_time_get_seconds (timestamp) - g_date_time_get_second (timestamp)) * 1000000.0), + g_date_time_get_seconds (timestamp), +- g_date_time_get_utc_offset (timestamp)/1000000); ++ (long)g_date_time_get_utc_offset (timestamp)/1000000); + + g_assert (g_date_time_get_year (timestamp) == td.exp_year); + g_assert (g_date_time_get_month (timestamp) == (gint) td.exp_month); +@@ -491,12 +491,12 @@ test_timestamp_handler (void) + " exp: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\\n" + " got: DD=%d MM=%d YYYY=%d HH=%d MM=%d SS=%d FF=%ld TZ=%ld\\n", + str, td.exp_day, td.exp_month, td.exp_year, +- tt.hour, tt.minute, tt.second, tt.fraction, tt.timezone, ++ tt.hour, tt.minute, tt.second, tt.fraction, (long)tt.timezone, + g_date_time_get_year (timestamp), g_date_time_get_month (timestamp), + g_date_time_get_day_of_month (timestamp), g_date_time_get_hour (timestamp), g_date_time_get_minute (timestamp), + g_date_time_get_second (timestamp), + (glong) ((g_date_time_get_seconds (timestamp) - g_date_time_get_second (timestamp)) * 1000000.0), +- g_date_time_get_utc_offset (timestamp)/1000000); ++ (long)g_date_time_get_utc_offset (timestamp)/1000000); + + g_object_unref (dh); + g_free (str); |