[gexiv2] test: Disable autoptr test if not on GCC/CLANG



commit babba64008386e69a42002ba3a8cec93ca37c27f
Author: Jens Georg <mail jensge org>
Date:   Wed Jan 9 10:17:56 2019 +0100

    test: Disable autoptr test if not on GCC/CLANG

 test/gexiv2-regression.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/test/gexiv2-regression.c b/test/gexiv2-regression.c
index 033c60c..1fd5444 100644
--- a/test/gexiv2-regression.c
+++ b/test/gexiv2-regression.c
@@ -196,6 +196,7 @@ static void test_bgo_730136(void)
 
 static void test_bgo_790925(void)
 {
+#if defined(__GNUC__) /* This should include clang */
     g_autoptr(GExiv2Metadata) meta = NULL;
     g_autoptr(GExiv2PreviewImage) image = NULL;
     GExiv2PreviewProperties **props = NULL;
@@ -214,6 +215,7 @@ static void test_bgo_790925(void)
 
     image = gexiv2_metadata_get_preview_image (meta, *props);
     g_assert_nonnull(image);
+#endif
 }
 
 static void test_ggo_xx(void)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]