summaryrefslogtreecommitdiff
path: root/src/user/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app')
-rw-r--r--src/user/app/tests/kernel/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/tests/kernel/path.c b/src/user/app/tests/kernel/path.c
index 5fb3123..ddaf692 100644
--- a/src/user/app/tests/kernel/path.c
+++ b/src/user/app/tests/kernel/path.c
@@ -55,7 +55,7 @@ static void test_path_simplify(void) {
const char *expected = testcases[i][1];
int len = path_simplify(input, buf, strlen(input));
if (expected == NULL) {
- test(len < 0);
+ test(len == 0);
} else {
// TODO an argument for printing info on test failure
test(len == (int)strlen(expected) && !memcmp(expected, buf, len));