summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-26 07:11:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-26 07:34:28 -0400
commitb2b044ce95a17f2ec81b9c83fbe0e818873b03d7 (patch)
tree468799383d58422835166293a6fe00b5940403aa
parentcbe2aa716d6bcb6796b7ecdb534a53f5fd3e2a08 (diff)
downloadgtk+-b2b044ce95a17f2ec81b9c83fbe0e818873b03d7.tar.gz
Move text history tests
We can test internal apis in our testsuite now, so move the text history tests there, to have them run in ci.
-rw-r--r--tests/meson.build1
-rw-r--r--testsuite/gtk/meson.build1
-rw-r--r--testsuite/gtk/texthistory.c (renamed from tests/testtexthistory.c)4
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 8ea23bf3fd..b548db4e7a 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -114,7 +114,6 @@ gtk_tests = [
['testtexture'],
['testwindowdrag'],
['testinhibitshortcuts'],
- ['testtexthistory', ['../gtk/gtktexthistory.c']],
['testzoom']
]
diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build
index a33fd29c1e..9fe45d339b 100644
--- a/testsuite/gtk/meson.build
+++ b/testsuite/gtk/meson.build
@@ -117,6 +117,7 @@ internal_tests = [
{ 'name': 'propertylookuplistmodel' },
{ 'name': 'rbtree' },
{ 'name': 'timsort' },
+ { 'name': 'texthistory' },
]
# Tests that are expected to fail
diff --git a/tests/testtexthistory.c b/testsuite/gtk/texthistory.c
index 556b2ac45f..f9fe45ceb2 100644
--- a/tests/testtexthistory.c
+++ b/testsuite/gtk/texthistory.c
@@ -582,7 +582,8 @@ int
main (int argc,
char *argv[])
{
- g_test_init (&argc, &argv, NULL);
+ (g_test_init) (&argc, &argv, NULL);
+
g_test_add_func ("/Gtk/TextHistory/test1", test1);
g_test_add_func ("/Gtk/TextHistory/test2", test2);
g_test_add_func ("/Gtk/TextHistory/test3", test3);
@@ -596,5 +597,6 @@ main (int argc,
g_test_add_func ("/Gtk/TextHistory/test11", test11);
g_test_add_func ("/Gtk/TextHistory/test12", test12);
g_test_add_func ("/Gtk/TextHistory/test13", test13);
+
return g_test_run ();
}