aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check-empathy-chatroom-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check-empathy-chatroom-manager.c')
-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);