aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-10-13 15:55:33 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-10-13 15:55:33 +0800
commit88dc706dd5c97fd3e4e839a3d54e6ded8873540d (patch)
treeb632e90d1061f9637af449d6f1bba30cd0525067 /tests
parent24fc798005f9904f637104431725fd697e70e139 (diff)
downloadgsoc2013-empathy-88dc706dd5c97fd3e4e839a3d54e6ded8873540d.tar
gsoc2013-empathy-88dc706dd5c97fd3e4e839a3d54e6ded8873540d.tar.gz
gsoc2013-empathy-88dc706dd5c97fd3e4e839a3d54e6ded8873540d.tar.bz2
gsoc2013-empathy-88dc706dd5c97fd3e4e839a3d54e6ded8873540d.tar.lz
gsoc2013-empathy-88dc706dd5c97fd3e4e839a3d54e6ded8873540d.tar.xz
gsoc2013-empathy-88dc706dd5c97fd3e4e839a3d54e6ded8873540d.tar.zst
gsoc2013-empathy-88dc706dd5c97fd3e4e839a3d54e6ded8873540d.zip
check-empathy-chatroom-manager.c: check the result of system()
svn path=/trunk/; revision=1576
Diffstat (limited to 'tests')
-rw-r--r--tests/check-empathy-chatroom-manager.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/check-empathy-chatroom-manager.c b/tests/check-empathy-chatroom-manager.c
index 73f164b15..f8fa8127c 100644
--- a/tests/check-empathy-chatroom-manager.c
+++ b/tests/check-empathy-chatroom-manager.c
@@ -100,7 +100,13 @@ START_TEST (test_empathy_chatroom_manager_new)
/* change the chatrooms XML file to use the account we just created */
cmd = g_strdup_printf ("sed -i 's/CHANGE_ME/%s/' %s",
mc_account_get_unique_name (account), file);
- system (cmd);
+
+ if (system (cmd) == -1)
+ {
+ g_print ("system call failed\n");
+ return;
+ }
+
g_free (cmd);
mgr = empathy_chatroom_manager_new (file);