Test case to check if an implementation of memset correctly
handles the value passed being wider than a byte
Details
Details
- Reviewers
fuz emaste - Commits
- rGf0d1236f0fc9: libc: Add memset test for int-to-char conversion
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Test looks reasonable. Were you able to trigger test suite failure with your broken memset?
lib/libc/tests/string/memset_test.c | ||
---|---|---|
6–26 | No need to put the full license text in if you already have a SPDX identifier. |
Comment Actions
Approved with a tiny style change that can be applied
lib/libc/tests/string/memset_test.c | ||
---|---|---|
19 | style(9) wants spaces -- for (int i = 0; i < 64; i++) { |