[gimp/wip/Jehan/debugging-flatpak] app: why does the flatpak fails when running tests?
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/debugging-flatpak] app: why does the flatpak fails when running tests?
- Date: Thu, 22 Jul 2021 17:21:56 +0000 (UTC)
commit 8dea3a7565785b33f7bfb095fa4ea9a257388d62
Author: Jehan <jehan girinstud io>
Date: Thu Jul 22 19:20:41 2021 +0200
app: why does the flatpak fails when running tests?
app/tests/test-save-and-export.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/app/tests/test-save-and-export.c b/app/tests/test-save-and-export.c
index 50fbd24ddc..f68baf1a9a 100644
--- a/app/tests/test-save-and-export.c
+++ b/app/tests/test-save-and-export.c
@@ -106,6 +106,7 @@ opened_xcf_file_files (gconstpointer data)
GFile *file;
gchar *filename;
GimpPDBStatusType status;
+ GError *error = NULL;
filename = g_build_filename (g_getenv ("GIMP_TESTING_ABS_TOP_SRCDIR"),
"app/tests/files/gimp-2-6-file.xcf",
@@ -122,8 +123,12 @@ opened_xcf_file_files (gconstpointer data)
GIMP_RUN_NONINTERACTIVE,
&status,
NULL /*mime_type*/,
- NULL /*error*/);
+ &error);
+ if (! image)
+ printf("NO image: %s\n", error->message);
+ else if (! GIMP_IS_IMAGE (image))
+ printf("image but not GimpImage? %s\n", error ? error->message : "PLOP");
g_assert (g_file_equal (gimp_image_get_file (image), file));
g_assert (gimp_image_get_imported_file (image) == NULL);
g_assert (gimp_image_get_exported_file (image) == NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]