[glib: 2/3] Move tests/relation-test.c to glib/tests/relation.c




commit 2d6dc9ff2ed1c6994b9cfe4d518eeafb14b3f4ca
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Thu Mar 17 18:36:58 2022 +0100

    Move tests/relation-test.c to glib/tests/relation.c
    
    Related to issue #1434

 glib/tests/meson.build                         | 1 +
 tests/relation-test.c => glib/tests/relation.c | 2 ++
 tests/meson.build                              | 1 -
 3 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/glib/tests/meson.build b/glib/tests/meson.build
index a0c64afe6..d05c0b5c4 100644
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
@@ -89,6 +89,7 @@ glib_tests = {
     'dependencies' : [pcre],
     'c_args' : use_pcre_static_flag ? ['-DPCRE_STATIC'] : [],
   },
+  'relation' : {},
   'rwlock' : {},
   'scannerapi' : {},
   'search-utils' : {},
diff --git a/tests/relation-test.c b/glib/tests/relation.c
similarity index 98%
rename from tests/relation-test.c
rename to glib/tests/relation.c
index fb4802f42..f96890b2b 100644
--- a/tests/relation-test.c
+++ b/glib/tests/relation.c
@@ -22,6 +22,8 @@
  * GLib at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#define GLIB_DISABLE_DEPRECATION_WARNINGS
+
 #include <glib.h>
 
 int array[10000];
diff --git a/tests/meson.build b/tests/meson.build
index 5ff99a4a8..fa7fddb84 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -20,7 +20,6 @@ tests = {
   'mainloop-test' : {},
   'mapping-test' : {},
   'onceinit' : {},
-  'relation-test' : {},
   'slice-concurrent' : {},
   'slice-threadinit' : {
     'dependencies' : [libgthread_dep],


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