[all-commits] [llvm/llvm-project] 4cfccd: [libc][NFC] add macro for fuchsia to switch test b...

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed Jan 13 13:28:21 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cfccd51335139871cad03ac451a2d27ebfe7761
      https://github.com/llvm/llvm-project/commit/4cfccd51335139871cad03ac451a2d27ebfe7761
  Author: Michael Jones <michaelrj at google.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M libc/utils/UnitTest/CMakeLists.txt
    A libc/utils/UnitTest/FuchsiaTest.h
    A libc/utils/UnitTest/LibcTest.cpp
    A libc/utils/UnitTest/LibcTest.h
    R libc/utils/UnitTest/Test.cpp
    M libc/utils/UnitTest/Test.h

  Log Message:
  -----------
  [libc][NFC] add macro for fuchsia to switch test backend to zxtest

This moves utils/UnitTest/Test.[h/cpp] to LibcTest.[h/cpp] and adds a
new Test.h that acts as a switcher so that Fuchsia can use the zxtest
backend for running our tests as part of their build.

FuchsiaTest.h is for including fuchsia's zxtest library and anything
else needed to make the tests work under fuchsia (currently just
undefining the isascii macro for the test).

Downstream users, please fix your build instead of reverting.

Reviewed By: sivachandra

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




More information about the All-commits mailing list