Skip to content

Commit d39b48a

Browse files
committed
fix stale test
1 parent 143c3dc commit d39b48a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/API/probes/test_memusage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ static int test_no_unit()
2929

3030
static int test_invalid_number()
3131
{
32-
size_t size;
32+
size_t size = 0;
3333
char *strval = strdup("www kB\n");
3434
int ret = read_common_sizet(&size, strval);
3535
free(strval);
36-
return (size == 0 && ret == 0);
36+
return (ret == -1);
3737
}
3838

3939
static int test_errno()

0 commit comments

Comments
 (0)