diff options
author | dzwdz | 2022-08-28 13:02:10 +0200 |
---|---|---|
committer | dzwdz | 2022-08-28 13:02:10 +0200 |
commit | f0bda71fe2a4df4201c6195be1fe46cf895c134d (patch) | |
tree | 098f6d4007d74569d486b515d95986b8c145d492 /src/user/app/tests/kernel | |
parent | c43b0ac7672b0d8fce8b1ea0a0dbe4383d60485e (diff) |
shared/path_simplify: return an unsigned value
Diffstat (limited to 'src/user/app/tests/kernel')
-rw-r--r-- | src/user/app/tests/kernel/path.c | 2 |
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)); |