[gtk/wip/smcv/reftest-dedup: 2/2] reftests: Share reftest-compare.[ch] between GSK and GTK tests




commit 1c6cf7a3b62b3d513e45a5c369e43c015d48800e
Author: Simon McVittie <smcv debian org>
Date:   Sat Feb 13 18:21:25 2021 +0000

    reftests: Share reftest-compare.[ch] between GSK and GTK tests
    
    The only non-whitespace difference is that the copy in GSK does not
    set the symbol's visibility.
    
    Signed-off-by: Simon McVittie <smcv debian org>

 testsuite/gsk/compare-render.c  |   2 +-
 testsuite/gsk/meson.build       |   2 +-
 testsuite/gsk/reftest-compare.c | 173 ----------------------------------------
 testsuite/gsk/reftest-compare.h |  30 -------
 4 files changed, 2 insertions(+), 205 deletions(-)
---
diff --git a/testsuite/gsk/compare-render.c b/testsuite/gsk/compare-render.c
index 562a82e5d7..462953ef9f 100644
--- a/testsuite/gsk/compare-render.c
+++ b/testsuite/gsk/compare-render.c
@@ -2,7 +2,7 @@
 #include <glib/gstdio.h>
 #include <gtk/gtk.h>
 #include <stdlib.h>
-#include "reftest-compare.h"
+#include "../reftests/reftest-compare.h"
 
 static char *arg_output_dir = NULL;
 
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 1c45056104..844e76c475 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -3,7 +3,7 @@ testdatadir = join_paths(installed_test_datadir, 'gsk')
 
 compare_render = executable(
   'compare-render',
-  ['compare-render.c', 'reftest-compare.c'],
+  ['compare-render.c', '../reftests/reftest-compare.c'],
   dependencies: libgtk_dep,
   c_args: common_cflags,
   install: get_option('install-tests'),


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