There were regressions in the testing framework due to none of the
functioning buildbots having a 32 bit long. This allowed the 32 bit
version of the strtointeger function to go untested. This patch adds
tests for strtoint32 and strtoint64, which are internal testing
functions that use constant integer sizes. It also fixes the tests to
properly handle these situations.
Details
Details
- Reviewers
sivachandra - Commits
- rG722832e6d764: [libc] Add strtoint32 and strtoint64 tests
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/test/src/stdlib/strtoint64_test.cpp | ||
---|---|---|
34 | Nit: Not sure if we want to call the internal function or if we should do something like: if constexpr (cpp::is_same_v<int64_t, long>) result = __llvm_libc::strtol(...); else result = __llvm_libc::strtoll(...); |
libc/test/src/stdlib/strtoint64_test.cpp | ||
---|---|---|
34 | Neither long nor long long are guaranteed to be 64 bits, so I think it's safer to just template this with the specific bits we want. |
Nit: Not sure if we want to call the internal function or if we should do something like: