diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-05-25 22:23:21 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-05-25 22:23:21 -0400 |
commit | 0629fee33903d0d0df8c3dd5264d29211cc1e926 (patch) | |
tree | 864e6e0a2f1253723f1388b5b3e7d7bb280e12ff | |
parent | a7a6e5b5a4152e85f0737a8fae37e5213b56196c (diff) | |
download | telepathy-logger-0629fee33903d0d0df8c3dd5264d29211cc1e926.tar.gz |
Fix warn not checking system() return value
-rw-r--r-- | tests/dbus/test-tpl-log-store-xml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dbus/test-tpl-log-store-xml.c b/tests/dbus/test-tpl-log-store-xml.c index f621a35..d049cf8 100644 --- a/tests/dbus/test-tpl-log-store-xml.c +++ b/tests/dbus/test-tpl-log-store-xml.c @@ -96,7 +96,10 @@ teardown (XmlTestCaseFixture *fixture, { gchar *command = g_strdup_printf ("rm -rf %s", fixture->tmp_basedir); - system (command); + if (system (command) == -1) + g_warning ("Failed to cleanup tempory test log dir: %s", + fixture->tmp_basedir); + g_free (fixture->tmp_basedir); } |