
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
19 lines
588 B
C++
19 lines
588 B
C++
//===-- Header selector for libc unittests ----------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_UTILS_UNITTEST_TEST_H
|
|
#define LLVM_LIBC_UTILS_UNITTEST_TEST_H
|
|
|
|
#ifdef LLVM_LIBC_TEST_USE_FUCHSIA
|
|
#include "FuchsiaTest.h"
|
|
#else
|
|
#include "LibcTest.h"
|
|
#endif
|
|
|
|
#endif // LLVM_LIBC_UTILS_UNITTEST_TEST_H
|