[all-commits] [llvm/llvm-project] 722832: [libc] Add strtoint32 and strtoint64 tests

michaelrj-google via All-commits all-commits at lists.llvm.org
Thu Jun 1 15:07:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 722832e6d764748f8ee167c95370e043594ef995
      https://github.com/llvm/llvm-project/commit/722832e6d764748f8ee167c95370e043594ef995
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M libc/test/src/stdlib/CMakeLists.txt
    M libc/test/src/stdlib/StrtolTest.h
    M libc/test/src/stdlib/atoi_test.cpp
    M libc/test/src/stdlib/atol_test.cpp
    M libc/test/src/stdlib/strtod_test.cpp
    M libc/test/src/stdlib/strtof_test.cpp
    A libc/test/src/stdlib/strtoint32_test.cpp
    A libc/test/src/stdlib/strtoint64_test.cpp
    M libc/test/src/stdlib/strtol_test.cpp

  Log Message:
  -----------
  [libc] Add strtoint32 and strtoint64 tests

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.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D151935




More information about the All-commits mailing list