about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-17 23:10:30 +0100
committerJames Booth <boothj5@gmail.com>2015-05-17 23:10:30 +0100
commit9ce25c33b03b7ff8ca8cd1cc52d8b7d24d125703 (patch)
tree05df4ec0d7acd0c83cb52f24a406464d962dea90
parent641eadd02f7f22d5bb16ba249d38b62c0da7b6a1 (diff)
downloadprofani-tty-9ce25c33b03b7ff8ca8cd1cc52d8b7d24d125703.tar.gz
Fixed compiler warnings
-rw-r--r--stabbertests/proftest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stabbertests/proftest.c b/stabbertests/proftest.c
index d5fdeb0a..6c44a6ee 100644
--- a/stabbertests/proftest.c
+++ b/stabbertests/proftest.c
@@ -8,6 +8,7 @@
 #include <cmocka.h>
 #include <stdio.h>
 #include <unistd.h>
+#include <errno.h>
 
 #include "config.h"
 
@@ -131,7 +132,10 @@ _create_logs_dir(void)
 void
 _cleanup_dirs(void)
 {
-    system("rm -rf ./stabbertests/files");
+    int res = system("rm -rf ./stabbertests/files");
+    if (res == -1) {
+        assert_true(FALSE);
+    }
 }
 
 void