[gtk/move-text-history-tests] Move text history tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/move-text-history-tests] Move text history tests
- Date: Wed, 26 May 2021 11:34:37 +0000 (UTC)
commit b2b044ce95a17f2ec81b9c83fbe0e818873b03d7
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 26 07:11:47 2021 -0400
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.
tests/meson.build | 1 -
testsuite/gtk/meson.build | 1 +
tests/testtexthistory.c => testsuite/gtk/texthistory.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
similarity index 99%
rename from tests/testtexthistory.c
rename to 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 ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]