1 //===-- Header selector for libc unittests ----------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_UTILS_UNITTEST_TEST_H
10 #define LLVM_LIBC_UTILS_UNITTEST_TEST_H
12 // This macro takes a file name and returns a value implicitly castable to
13 // a const char*. That const char* is the path to a file with the provided name
14 // in a directory where the test is allowed to write. By default it writes
15 // directly to the filename provided, but implementations are allowed to
16 // redefine it as necessary.
17 #define libc_make_test_file_path(file_name) (file_name)
19 #if defined(LIBC_COPT_TEST_USE_FUCHSIA)
20 #include "FuchsiaTest.h"
21 #elif defined(LIBC_COPT_TEST_USE_PIGWEED)
22 #include "PigweedTest.h"
27 #endif // LLVM_LIBC_UTILS_UNITTEST_TEST_H