tests/posix_semaphore: test4: BUG add '\0' after fmt_u64_dec
fmt_u64_dec does not include the terminating null string character.
This commit is contained in:
parent
fe9c604391
commit
ffcdb61211
@ -261,7 +261,7 @@ void test4(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stop = xtimer_now_usec64() - start;
|
stop = xtimer_now_usec64() - start;
|
||||||
fmt_u64_dec(uint64_str, stop);
|
uint64_str[fmt_u64_dec(uint64_str, stop)] = '\0';
|
||||||
if (stop < (exp - 100)) {
|
if (stop < (exp - 100)) {
|
||||||
printf("first: waited only %s usec => FAILED\n", uint64_str);
|
printf("first: waited only %s usec => FAILED\n", uint64_str);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user