Clean up user library include paths (XCC)
[akaros.git] / user / utest / file-posix.c
index 59398f3..99a1b71 100644 (file)
@@ -4,14 +4,14 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <arch/arch.h>
+#include <parlib/arch/arch.h>
 #include <unistd.h>
 #include <errno.h>
 #include <dirent.h>
 #include <stdlib.h>
 #include <string.h>
 
-#include <utest.h>
+#include <utest/utest.h>
 
 TEST_SUITE("FILE POSIX");
 
@@ -20,16 +20,11 @@ TEST_SUITE("FILE POSIX");
 bool test_openat(void)
 {
        int dfd = open("/dir1", O_RDONLY);
-       if (dfd < 0) {
-               perror("open dir1");
-               return FALSE;
-       }
+       UT_ASSERT(dfd >= 0);
+
        int ffd = openat(dfd, "f1.txt", O_RDWR);
-       if (ffd < 0) {
-               perror("open f1.txt");
-               close(dfd);
-               return FALSE;
-       }
+       UT_ASSERT(ffd >= 0, close(dfd));
+
        close(ffd);
        close(dfd);
        return TRUE;