summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2023-03-22 12:37:12 +0000
committerSam Thursfield <sam@afuera.me.uk>2023-03-22 12:37:12 +0000
commit6409812d31697ba430ebb843133304b46991d637 (patch)
tree04fa70b9c132a242054683564ce896e68eefa5d1
parente95dc8fab92aafda74d88b29c8ed5d4db5d20fb5 (diff)
parent13196660ad70d5916a1e30951dfd55af591473db (diff)
downloadtracker-6409812d31697ba430ebb843133304b46991d637.tar.gz
Merge branch 'wip/carlosg/batch-test-fix' into 'master'
tests: Pass right type/width to varargs TrackerBatch API Closes #397 See merge request https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/587
-rw-r--r--tests/libtracker-sparql/tracker-batch-test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/libtracker-sparql/tracker-batch-test.c b/tests/libtracker-sparql/tracker-batch-test.c
index 9b9f81b8c..a49eeed8c 100644
--- a/tests/libtracker-sparql/tracker-batch-test.c
+++ b/tests/libtracker-sparql/tracker-batch-test.c
@@ -525,7 +525,7 @@ batch_statement_insert (TestFixture *test_fixture,
"codec", G_TYPE_STRING, "png",
"interlaced", G_TYPE_BOOLEAN, FALSE,
"exposure", G_TYPE_DOUBLE, 0.12345678901,
- "resolution", G_TYPE_INT64, 123,
+ "resolution", G_TYPE_INT64, (gint64) 123,
"created", G_TYPE_DATE_TIME, date,
NULL);
@@ -556,7 +556,7 @@ batch_statement_update (TestFixture *test_fixture,
"codec", G_TYPE_STRING, "jpeg",
"interlaced", G_TYPE_BOOLEAN, TRUE,
"exposure", G_TYPE_DOUBLE, 1.23456789012,
- "resolution", G_TYPE_INT64, 234,
+ "resolution", G_TYPE_INT64, (gint64) 234,
"created", G_TYPE_DATE_TIME, date,
NULL);
tracker_batch_execute (batch, NULL, &error);
@@ -571,7 +571,7 @@ batch_statement_update (TestFixture *test_fixture,
"codec", G_TYPE_STRING, "png",
"interlaced", G_TYPE_BOOLEAN, FALSE,
"exposure", G_TYPE_DOUBLE, 0.12345678901,
- "resolution", G_TYPE_INT64, 123,
+ "resolution", G_TYPE_INT64, (gint64) 123,
"created", G_TYPE_DATE_TIME, date,
NULL);
tracker_batch_execute (batch, NULL, &error);
@@ -601,7 +601,7 @@ batch_statement_update_same_batch (TestFixture *test_fixture,
"codec", G_TYPE_STRING, "jpeg",
"interlaced", G_TYPE_BOOLEAN, TRUE,
"exposure", G_TYPE_DOUBLE, 1.23456789012,
- "resolution", G_TYPE_INT64, 234,
+ "resolution", G_TYPE_INT64, (gint64) 234,
"created", G_TYPE_DATE_TIME, date,
NULL);
tracker_batch_add_statement (batch, stmt,
@@ -609,7 +609,7 @@ batch_statement_update_same_batch (TestFixture *test_fixture,
"codec", G_TYPE_STRING, "png",
"interlaced", G_TYPE_BOOLEAN, FALSE,
"exposure", G_TYPE_DOUBLE, 0.12345678901,
- "resolution", G_TYPE_INT64, 123,
+ "resolution", G_TYPE_INT64, (gint64) 123,
"created", G_TYPE_DATE_TIME, date,
NULL);
tracker_batch_execute (batch, NULL, &error);
@@ -641,7 +641,7 @@ batch_statement_delete (TestFixture *test_fixture,
"codec", G_TYPE_STRING, "png",
"interlaced", G_TYPE_BOOLEAN, FALSE,
"exposure", G_TYPE_DOUBLE, 0.12345678901,
- "resolution", G_TYPE_INT64, 123,
+ "resolution", G_TYPE_INT64, (gint64) 123,
"created", G_TYPE_DATE_TIME, date,
NULL);
tracker_batch_execute (batch, NULL, &error);
@@ -683,7 +683,7 @@ batch_statement_delete_same_batch (TestFixture *test_fixture,
"codec", G_TYPE_STRING, "png",
"interlaced", G_TYPE_BOOLEAN, FALSE,
"exposure", G_TYPE_DOUBLE, 0.12345678901,
- "resolution", G_TYPE_INT64, 123,
+ "resolution", G_TYPE_INT64, (gint64) 123,
"created", G_TYPE_DATE_TIME, date,
NULL);
tracker_batch_add_statement (batch, del_stmt,