[gnome-logs/wip/test: 25/33] Separate UI from assertion test
- From: Rashi Aswani <aswanirashi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs/wip/test: 25/33] Separate UI from assertion test
- Date: Wed, 19 Aug 2015 05:50:53 +0000 (UTC)
commit 0a74c7f38ab320f57df5de1386cdb1641fd3da1e
Author: Rashi Aswani <aswanirashi19 gmail com>
Date: Mon Jul 27 01:10:08 2015 +0530
Separate UI from assertion test
tests/gnome-logs-test.c | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/tests/gnome-logs-test.c b/tests/gnome-logs-test.c
index dffc06b..40b9332 100644
--- a/tests/gnome-logs-test.c
+++ b/tests/gnome-logs-test.c
@@ -33,9 +33,7 @@
#include "../src/gl-eventviewrow.h"
#include "../src/gl-util.h"
#include "../src/gl-window.h"
-#include <unistd.h>
-void *myThreadFun(void *);
static void
check_log_message (void)
{
@@ -48,26 +46,7 @@ check_log_message (void)
int
main (int argc, char** argv)
{
- GtkApplication *application;
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/util/check_log_message", check_log_message);
-
- int status;
- pid_t pid = fork();
- if(pid==0)
- {
- bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
- bind_textdomain_codeset (PACKAGE_TARNAME, "UTF-8");
- textdomain (GETTEXT_PACKAGE);
- g_set_prgname (PACKAGE_TARNAME);
- application = gl_application_new ();
- status = g_application_run (G_APPLICATION (application), argc, argv);
- g_object_unref (application);
- }
- else if(pid > 0)
- {
- sleep (1);
- kill(pid, SIGKILL);
- }
return g_test_run();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]