tests: fix the return value of bind, srv, and stat
[akaros.git] / tests / bind.c
index e78894d..7224945 100644 (file)
@@ -67,7 +67,9 @@ int main(int argc, char *argv[])
                       src_path, flag);
        ret = syscall(SYS_nbind, src_path, strlen(src_path), onto_path,
                      strlen(onto_path), flag);
-       if (ret < 0)
+       if (ret < 0) {
                perror("Bind failed");
-       return ret;
+               return -1;
+       }
+       return 0;
 }