Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleš Matěj <amatej@redhat.com>2019-03-12 15:09:45 +0300
committerpkratoch <pkratoch@redhat.com>2019-03-12 15:47:43 +0300
commit5b4c06f6af24633f667da37455281f24a4abd461 (patch)
tree0e28b36fb3e821473f80dee7d186ae6f1170a7fe /tests
parent3854788d0d0d6ae7e087c3f7ebaee608018165a2 (diff)
fix test on armhfp, which does not support printing 64-bit integers0.12.2
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xml_dump_primary.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_xml_dump_primary.c b/tests/test_xml_dump_primary.c
index 6a55191..8e2e0cd 100644
--- a/tests/test_xml_dump_primary.c
+++ b/tests/test_xml_dump_primary.c
@@ -270,26 +270,26 @@ cmp_package_and_xml_node(cr_Package *pkg, xmlNodePtr node)
current = current->next;
g_assert_cmpstr(current->name, ==, "time");
g_assert_cmpstr(current->properties->name, ==, "file");
- gchar *tmp = g_strdup_printf("%i", pkg->time_file);
+ gchar *tmp = g_strdup_printf("%i", (gint32) pkg->time_file);
g_assert_cmpstr(current->properties->children->content, ==, tmp);
g_free(tmp);
g_assert_cmpstr(current->properties->next->name, ==, "build");
- tmp = g_strdup_printf("%i", pkg->time_build);
+ tmp = g_strdup_printf("%i", (gint32) pkg->time_build);
g_assert_cmpstr(current->properties->next->children->content, ==, tmp);
g_free(tmp);
current = current->next;
g_assert_cmpstr(current->name, ==, "size");
g_assert_cmpstr(current->properties->name, ==, "package");
- tmp = g_strdup_printf("%i", pkg->size_package);
+ tmp = g_strdup_printf("%i", (gint32) pkg->size_package);
g_assert_cmpstr(current->properties->children->content, ==, tmp);
g_free(tmp);
g_assert_cmpstr(current->properties->next->name, ==, "installed");
- tmp = g_strdup_printf("%i", pkg->size_installed);
+ tmp = g_strdup_printf("%i", (gint32) pkg->size_installed);
g_assert_cmpstr(current->properties->next->children->content, ==, tmp);
g_free(tmp);
g_assert_cmpstr(current->properties->next->next->name, ==, "archive");
- tmp = g_strdup_printf("%i", pkg->size_archive);
+ tmp = g_strdup_printf("%i", (gint32) pkg->size_archive);
g_assert_cmpstr(current->properties->next->next->children->content, ==, tmp);
g_free(tmp);
@@ -331,11 +331,11 @@ cmp_package_and_xml_node(cr_Package *pkg, xmlNodePtr node)
current = current->next;
g_assert_cmpstr(current->name, ==, "rpm:header-range");
g_assert_cmpstr(current->properties->name, ==, "start");
- tmp = g_strdup_printf("%i", pkg->rpm_header_start);
+ tmp = g_strdup_printf("%i", (gint32) pkg->rpm_header_start);
g_assert_cmpstr(current->properties->children->content, ==, tmp);
g_free(tmp);
g_assert_cmpstr(current->properties->next->name, ==, "end");
- tmp = g_strdup_printf("%i", pkg->rpm_header_end);
+ tmp = g_strdup_printf("%i", (gint32) pkg->rpm_header_end);
g_assert_cmpstr(current->properties->next->children->content, ==, tmp);
g_free(tmp);