diff options
Diffstat (limited to 'libc/test')
30 files changed, 120 insertions, 45 deletions
diff --git a/libc/test/UnitTest/ExecuteFunction.h b/libc/test/UnitTest/ExecuteFunction.h index 2129e63..9595056 100644 --- a/libc/test/UnitTest/ExecuteFunction.h +++ b/libc/test/UnitTest/ExecuteFunction.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_TESTUTILS_EXECUTEFUNCTION_H -#define LLVM_LIBC_UTILS_TESTUTILS_EXECUTEFUNCTION_H +#ifndef LLVM_LIBC_TEST_UNITTEST_EXECUTEFUNCTION_H +#define LLVM_LIBC_TEST_UNITTEST_EXECUTEFUNCTION_H #include <stdint.h> @@ -49,4 +49,4 @@ const char *signal_as_string(int signum); } // namespace testutils } // namespace LIBC_NAMESPACE -#endif // LLVM_LIBC_UTILS_TESTUTILS_EXECUTEFUNCTION_H +#endif // LLVM_LIBC_TEST_UNITTEST_EXECUTEFUNCTION_H diff --git a/libc/test/UnitTest/FPExceptMatcher.h b/libc/test/UnitTest/FPExceptMatcher.h index 98c4f73..d36e98d 100644 --- a/libc/test/UnitTest/FPExceptMatcher.h +++ b/libc/test/UnitTest/FPExceptMatcher.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_FPEXCEPTMATCHER_H -#define LLVM_LIBC_UTILS_UNITTEST_FPEXCEPTMATCHER_H +#ifndef LLVM_LIBC_TEST_UNITTEST_FPEXCEPTMATCHER_H +#define LLVM_LIBC_TEST_UNITTEST_FPEXCEPTMATCHER_H #ifndef LIBC_COPT_TEST_USE_FUCHSIA @@ -61,4 +61,4 @@ public: #define ASSERT_RAISES_FP_EXCEPT(func) ASSERT_DEATH(func, WITH_SIGNAL(SIGFPE)) #endif // LIBC_COPT_TEST_USE_FUCHSIA -#endif // LLVM_LIBC_UTILS_UNITTEST_FPEXCEPTMATCHER_H +#endif // LLVM_LIBC_TEST_UNITTEST_FPEXCEPTMATCHER_H diff --git a/libc/test/UnitTest/FPMatcher.h b/libc/test/UnitTest/FPMatcher.h index c4a1cfa..4525b9e 100644 --- a/libc/test/UnitTest/FPMatcher.h +++ b/libc/test/UnitTest/FPMatcher.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_FPMATCHER_H -#define LLVM_LIBC_UTILS_UNITTEST_FPMATCHER_H +#ifndef LLVM_LIBC_TEST_UNITTEST_FPMATCHER_H +#define LLVM_LIBC_TEST_UNITTEST_FPMATCHER_H #include "src/__support/CPP/type_traits.h" #include "src/__support/FPUtil/FEnvImpl.h" @@ -210,4 +210,4 @@ template <typename T> struct FPTest : public Test { } \ } while (0) -#endif // LLVM_LIBC_UTILS_UNITTEST_FPMATCHER_H +#endif // LLVM_LIBC_TEST_UNITTEST_FPMATCHER_H diff --git a/libc/test/UnitTest/LibcTest.h b/libc/test/UnitTest/LibcTest.h index 00e34a4..639f600 100644 --- a/libc/test/UnitTest/LibcTest.h +++ b/libc/test/UnitTest/LibcTest.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_LIBCTEST_H -#define LLVM_LIBC_UTILS_UNITTEST_LIBCTEST_H +#ifndef LLVM_LIBC_TEST_UNITTEST_LIBCTEST_H +#define LLVM_LIBC_TEST_UNITTEST_LIBCTEST_H // This is defined as a simple macro in test.h so that it exists for platforms // that don't use our test infrastructure. It's defined as a proper function @@ -493,4 +493,4 @@ CString libc_make_test_file_path_func(const char *file_name); #define WITH_SIGNAL(X) X -#endif // LLVM_LIBC_UTILS_UNITTEST_LIBCTEST_H +#endif // LLVM_LIBC_TEST_UNITTEST_LIBCTEST_H diff --git a/libc/test/UnitTest/MemoryMatcher.h b/libc/test/UnitTest/MemoryMatcher.h index cf861a6..c548baf 100644 --- a/libc/test/UnitTest/MemoryMatcher.h +++ b/libc/test/UnitTest/MemoryMatcher.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_MEMORY_MATCHER_H -#define LLVM_LIBC_UTILS_UNITTEST_MEMORY_MATCHER_H +#ifndef LLVM_LIBC_TEST_UNITTEST_MEMORYMATCHER_H +#define LLVM_LIBC_TEST_UNITTEST_MEMORYMATCHER_H #include "src/__support/CPP/span.h" @@ -66,4 +66,4 @@ public: #endif -#endif // LLVM_LIBC_UTILS_UNITTEST_MEMORY_MATCHER_H +#endif // LLVM_LIBC_TEST_UNITTEST_MEMORYMATCHER_H diff --git a/libc/test/UnitTest/PlatformDefs.h b/libc/test/UnitTest/PlatformDefs.h index 40472f4..f9911b1 100644 --- a/libc/test/UnitTest/PlatformDefs.h +++ b/libc/test/UnitTest/PlatformDefs.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_PLATFORMDEFS_H -#define LLVM_LIBC_UTILS_UNITTEST_PLATFORMDEFS_H +#ifndef LLVM_LIBC_TEST_UNITTEST_PLATFORMDEFS_H +#define LLVM_LIBC_TEST_UNITTEST_PLATFORMDEFS_H #if !defined(_WIN32) #define ENABLE_SUBPROCESS_TESTS #endif -#endif // LLVM_LIBC_UTILS_UNITTEST_PLATFORMDEFS_H +#endif // LLVM_LIBC_TEST_UNITTEST_PLATFORMDEFS_H diff --git a/libc/test/UnitTest/RoundingModeUtils.h b/libc/test/UnitTest/RoundingModeUtils.h index d1c3c6f..b986c98 100644 --- a/libc/test/UnitTest/RoundingModeUtils.h +++ b/libc/test/UnitTest/RoundingModeUtils.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_TESTUTILS_ROUNDINGMODEUTILS_H -#define LLVM_LIBC_UTILS_TESTUTILS_ROUNDINGMODEUTILS_H +#ifndef LLVM_LIBC_TEST_UNITTEST_ROUNDINGMODEUTILS_H +#define LLVM_LIBC_TEST_UNITTEST_ROUNDINGMODEUTILS_H #include <stdint.h> @@ -34,4 +34,4 @@ template <RoundingMode R> struct ForceRoundingModeTest : ForceRoundingMode { } // namespace fputil } // namespace LIBC_NAMESPACE -#endif // LLVM_LIBC_UTILS_TESTUTILS_ROUNDINGMODEUTILS_H +#endif // LLVM_LIBC_TEST_UNITTEST_ROUNDINGMODEUTILS_H diff --git a/libc/test/UnitTest/StringUtils.h b/libc/test/UnitTest/StringUtils.h index ac28926..54cff97 100644 --- a/libc/test/UnitTest/StringUtils.h +++ b/libc/test/UnitTest/StringUtils.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_SIMPLE_STRING_CONV_H -#define LLVM_LIBC_UTILS_UNITTEST_SIMPLE_STRING_CONV_H +#ifndef LLVM_LIBC_TEST_UNITTEST_STRINGUTILS_H +#define LLVM_LIBC_TEST_UNITTEST_STRINGUTILS_H #include "src/__support/CPP/string.h" #include "src/__support/CPP/type_traits.h" @@ -33,4 +33,4 @@ int_to_hex(T value, size_t length = sizeof(T) * 2) { } // namespace LIBC_NAMESPACE -#endif // LLVM_LIBC_UTILS_UNITTEST_SIMPLE_STRING_CONV_H +#endif // LLVM_LIBC_TEST_UNITTEST_STRINGUTILS_H diff --git a/libc/test/UnitTest/Test.h b/libc/test/UnitTest/Test.h index 61021b9..f7ce3cf 100644 --- a/libc/test/UnitTest/Test.h +++ b/libc/test/UnitTest/Test.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_TEST_H -#define LLVM_LIBC_UTILS_UNITTEST_TEST_H +#ifndef LLVM_LIBC_TEST_UNITTEST_TEST_H +#define LLVM_LIBC_TEST_UNITTEST_TEST_H // This macro takes a file name and returns a value implicitly castable to // a const char*. That const char* is the path to a file with the provided name @@ -24,4 +24,4 @@ #include "LibcTest.h" #endif -#endif // LLVM_LIBC_UTILS_UNITTEST_TEST_H +#endif // LLVM_LIBC_TEST_UNITTEST_TEST_H diff --git a/libc/test/integration/src/spawn/test_binary_properties.h b/libc/test/integration/src/spawn/test_binary_properties.h index f1521c2..8e6a1fe 100644 --- a/libc/test/integration/src/spawn/test_binary_properties.h +++ b/libc/test/integration/src/spawn/test_binary_properties.h @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#ifndef LIBC_TEST_INTEGRATION_SRC_SPAWN_TEST_BINARY_PROPERTIES_H -#define LIBC_TEST_INTEGRATION_SRC_SPAWN_TEST_BINARY_PROPERTIES_H +#ifndef LLVM_LIBC_TEST_INTEGRATION_SRC_SPAWN_TEST_BINARY_PROPERTIES_H +#define LLVM_LIBC_TEST_INTEGRATION_SRC_SPAWN_TEST_BINARY_PROPERTIES_H constexpr int CHILD_FD = 10; constexpr char TEXT[] = "Hello, posix_spawn"; -#endif // LIBC_TEST_INTEGRATION_SRC_SPAWN_TEST_BINARY_PROPERTIES_H +#endif // LLVM_LIBC_TEST_INTEGRATION_SRC_SPAWN_TEST_BINARY_PROPERTIES_H diff --git a/libc/test/src/math/FAbsTest.h b/libc/test/src/math/FAbsTest.h index bf3052a..54f5f87 100644 --- a/libc/test/src/math/FAbsTest.h +++ b/libc/test/src/math/FAbsTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_FABSTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_FABSTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" #include "utils/MPFRWrapper/MPFRUtils.h" @@ -47,3 +50,5 @@ public: using LlvmLibcFAbsTest = FAbsTest<T>; \ TEST_F(LlvmLibcFAbsTest, SpecialNumbers) { testSpecialNumbers(&func); } \ TEST_F(LlvmLibcFAbsTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_FABSTEST_H diff --git a/libc/test/src/math/FMaxTest.h b/libc/test/src/math/FMaxTest.h index edc46ae..f8046f3 100644 --- a/libc/test/src/math/FMaxTest.h +++ b/libc/test/src/math/FMaxTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_FMAXTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_FMAXTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" #include "utils/MPFRWrapper/MPFRUtils.h" @@ -83,3 +86,5 @@ public: TEST_F(LlvmLibcFMaxTest, NegInfArg) { testNegInfArg(&func); } \ TEST_F(LlvmLibcFMaxTest, BothZero) { testBothZero(&func); } \ TEST_F(LlvmLibcFMaxTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_FMAXTEST_H diff --git a/libc/test/src/math/FMinTest.h b/libc/test/src/math/FMinTest.h index 5ff5836..7a6534f 100644 --- a/libc/test/src/math/FMinTest.h +++ b/libc/test/src/math/FMinTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_FMINTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_FMINTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" #include "utils/MPFRWrapper/MPFRUtils.h" @@ -83,3 +86,5 @@ public: TEST_F(LlvmLibcFMinTest, NegInfArg) { testNegInfArg(&func); } \ TEST_F(LlvmLibcFMinTest, BothZero) { testBothZero(&func); } \ TEST_F(LlvmLibcFMinTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_FMINTEST_H diff --git a/libc/test/src/math/FloorTest.h b/libc/test/src/math/FloorTest.h index 5e459eb..66b37d6 100644 --- a/libc/test/src/math/FloorTest.h +++ b/libc/test/src/math/FloorTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_FLOORTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_FLOORTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" #include "utils/MPFRWrapper/MPFRUtils.h" @@ -82,3 +85,5 @@ public: TEST_F(LlvmLibcFloorTest, RoundedNubmers) { testRoundedNumbers(&func); } \ TEST_F(LlvmLibcFloorTest, Fractions) { testFractions(&func); } \ TEST_F(LlvmLibcFloorTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_FLOORTEST_H diff --git a/libc/test/src/math/RandUtils.h b/libc/test/src/math/RandUtils.h index 05236ea..fecbd8e 100644 --- a/libc/test/src/math/RandUtils.h +++ b/libc/test/src/math/RandUtils.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_RANDUTILS_H +#define LLVM_LIBC_TEST_SRC_MATH_RANDUTILS_H + namespace LIBC_NAMESPACE { namespace testutils { @@ -14,3 +17,5 @@ int rand(); } // namespace testutils } // namespace LIBC_NAMESPACE + +#endif // LLVM_LIBC_TEST_SRC_MATH_RANDUTILS_H diff --git a/libc/test/src/math/RoundTest.h b/libc/test/src/math/RoundTest.h index 4860464..b255ecc 100644 --- a/libc/test/src/math/RoundTest.h +++ b/libc/test/src/math/RoundTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_ROUNDTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_ROUNDTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" #include "utils/MPFRWrapper/MPFRUtils.h" @@ -82,3 +85,5 @@ public: TEST_F(LlvmLibcRoundTest, RoundedNubmers) { testRoundedNumbers(&func); } \ TEST_F(LlvmLibcRoundTest, Fractions) { testFractions(&func); } \ TEST_F(LlvmLibcRoundTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_ROUNDTEST_H diff --git a/libc/test/src/math/TruncTest.h b/libc/test/src/math/TruncTest.h index 0d99363..6d0ea11 100644 --- a/libc/test/src/math/TruncTest.h +++ b/libc/test/src/math/TruncTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_TRUNCTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_TRUNCTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" #include "utils/MPFRWrapper/MPFRUtils.h" @@ -82,3 +85,5 @@ public: TEST_F(LlvmLibcTruncTest, RoundedNubmers) { testRoundedNumbers(&func); } \ TEST_F(LlvmLibcTruncTest, Fractions) { testFractions(&func); } \ TEST_F(LlvmLibcTruncTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_TRUNCTEST_H diff --git a/libc/test/src/math/differential_testing/Timer.h b/libc/test/src/math/differential_testing/Timer.h index d4acff7..0d9518c 100644 --- a/libc/test/src/math/differential_testing/Timer.h +++ b/libc/test/src/math/differential_testing/Timer.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_TESTUTILS_TIMER_H -#define LLVM_LIBC_UTILS_TESTUTILS_TIMER_H +#ifndef LLVM_LIBC_TEST_SRC_MATH_DIFFERENTIAL_TESTING_TIMER_H +#define LLVM_LIBC_TEST_SRC_MATH_DIFFERENTIAL_TESTING_TIMER_H #include <stdint.h> @@ -30,4 +30,4 @@ public: } // namespace testing } // namespace LIBC_NAMESPACE -#endif // LLVM_LIBC_UTILS_TESTUTILS_TIMER_H +#endif // LLVM_LIBC_TEST_SRC_MATH_DIFFERENTIAL_TESTING_TIMER_H diff --git a/libc/test/src/math/in_float_range_test_helper.h b/libc/test/src/math/in_float_range_test_helper.h index 5f345c0..35e039e 100644 --- a/libc/test/src/math/in_float_range_test_helper.h +++ b/libc/test/src/math/in_float_range_test_helper.h @@ -2,8 +2,8 @@ // Created by kirill on 8/30/22. // -#ifndef LLVM_IN_FLOAT_RANGE_TEST_HELPER_H -#define LLVM_IN_FLOAT_RANGE_TEST_HELPER_H +#ifndef LLVM_LIBC_TEST_SRC_MATH_IN_FLOAT_RANGE_TEST_HELPER_H +#define LLVM_LIBC_TEST_SRC_MATH_IN_FLOAT_RANGE_TEST_HELPER_H #include <stdint.h> @@ -23,4 +23,4 @@ } \ } -#endif // LLVM_IN_FLOAT_RANGE_TEST_HELPER_H +#endif // LLVM_LIBC_TEST_SRC_MATH_IN_FLOAT_RANGE_TEST_HELPER_H diff --git a/libc/test/src/math/smoke/CeilTest.h b/libc/test/src/math/smoke/CeilTest.h index c10fd28..5248dbc 100644 --- a/libc/test/src/math/smoke/CeilTest.h +++ b/libc/test/src/math/smoke/CeilTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_CEILTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_CEILTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -66,3 +69,5 @@ public: TEST_F(LlvmLibcCeilTest, SpecialNumbers) { testSpecialNumbers(&func); } \ TEST_F(LlvmLibcCeilTest, RoundedNubmers) { testRoundedNumbers(&func); } \ TEST_F(LlvmLibcCeilTest, Fractions) { testFractions(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_CEILTEST_H diff --git a/libc/test/src/math/smoke/CopySignTest.h b/libc/test/src/math/smoke/CopySignTest.h index 1108a45..9ee3433 100644 --- a/libc/test/src/math/smoke/CopySignTest.h +++ b/libc/test/src/math/smoke/CopySignTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_COPYSIGNTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_COPYSIGNTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -52,3 +55,5 @@ public: using LlvmLibcCopySignTest = CopySignTest<T>; \ TEST_F(LlvmLibcCopySignTest, SpecialNumbers) { testSpecialNumbers(&func); } \ TEST_F(LlvmLibcCopySignTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_COPYSIGNTEST_H diff --git a/libc/test/src/math/smoke/FAbsTest.h b/libc/test/src/math/smoke/FAbsTest.h index 7d905bae..cf05882 100644 --- a/libc/test/src/math/smoke/FAbsTest.h +++ b/libc/test/src/math/smoke/FAbsTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_FABSTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_FABSTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -35,3 +38,5 @@ public: #define LIST_FABS_TESTS(T, func) \ using LlvmLibcFAbsTest = FAbsTest<T>; \ TEST_F(LlvmLibcFAbsTest, SpecialNumbers) { testSpecialNumbers(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_FABSTEST_H diff --git a/libc/test/src/math/smoke/FMaxTest.h b/libc/test/src/math/smoke/FMaxTest.h index 1a376af..98fae06 100644 --- a/libc/test/src/math/smoke/FMaxTest.h +++ b/libc/test/src/math/smoke/FMaxTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_FMAXTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_FMAXTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -80,3 +83,5 @@ public: TEST_F(LlvmLibcFMaxTest, NegInfArg) { testNegInfArg(&func); } \ TEST_F(LlvmLibcFMaxTest, BothZero) { testBothZero(&func); } \ TEST_F(LlvmLibcFMaxTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_FMAXTEST_H diff --git a/libc/test/src/math/smoke/FMinTest.h b/libc/test/src/math/smoke/FMinTest.h index add2544..b1ffe38 100644 --- a/libc/test/src/math/smoke/FMinTest.h +++ b/libc/test/src/math/smoke/FMinTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_FMINTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_FMINTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -80,3 +83,5 @@ public: TEST_F(LlvmLibcFMinTest, NegInfArg) { testNegInfArg(&func); } \ TEST_F(LlvmLibcFMinTest, BothZero) { testBothZero(&func); } \ TEST_F(LlvmLibcFMinTest, Range) { testRange(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_FMINTEST_H diff --git a/libc/test/src/math/smoke/FloorTest.h b/libc/test/src/math/smoke/FloorTest.h index 1c1b62c..610f5c2 100644 --- a/libc/test/src/math/smoke/FloorTest.h +++ b/libc/test/src/math/smoke/FloorTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_FLOORTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_FLOORTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -66,3 +69,5 @@ public: TEST_F(LlvmLibcFloorTest, SpecialNumbers) { testSpecialNumbers(&func); } \ TEST_F(LlvmLibcFloorTest, RoundedNubmers) { testRoundedNumbers(&func); } \ TEST_F(LlvmLibcFloorTest, Fractions) { testFractions(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_FLOORTEST_H diff --git a/libc/test/src/math/smoke/RIntTest.h b/libc/test/src/math/smoke/RIntTest.h index 233164b..4c90dff 100644 --- a/libc/test/src/math/smoke/RIntTest.h +++ b/libc/test/src/math/smoke/RIntTest.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H -#define LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_RINTTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_RINTTEST_H #include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/FPUtil/FPBits.h" @@ -54,4 +54,4 @@ public: using LlvmLibcRIntTest = RIntTestTemplate<F>; \ TEST_F(LlvmLibcRIntTest, specialNumbers) { testSpecialNumbers(&func); } -#endif // LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_RINTTEST_H diff --git a/libc/test/src/math/smoke/RoundTest.h b/libc/test/src/math/smoke/RoundTest.h index 2e95f18..d2a5906 100644 --- a/libc/test/src/math/smoke/RoundTest.h +++ b/libc/test/src/math/smoke/RoundTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_ROUNDTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_ROUNDTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -66,3 +69,5 @@ public: TEST_F(LlvmLibcRoundTest, SpecialNumbers) { testSpecialNumbers(&func); } \ TEST_F(LlvmLibcRoundTest, RoundedNubmers) { testRoundedNumbers(&func); } \ TEST_F(LlvmLibcRoundTest, Fractions) { testFractions(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_ROUNDTEST_H diff --git a/libc/test/src/math/smoke/RoundToIntegerTest.h b/libc/test/src/math/smoke/RoundToIntegerTest.h index 5969413..e86533c 100644 --- a/libc/test/src/math/smoke/RoundToIntegerTest.h +++ b/libc/test/src/math/smoke/RoundToIntegerTest.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_TEST_SRC_MATH_ROUNDTOINTEGERTEST_H -#define LLVM_LIBC_TEST_SRC_MATH_ROUNDTOINTEGERTEST_H +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_ROUNDTOINTEGERTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_ROUNDTOINTEGERTEST_H #include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/FPUtil/FPBits.h" @@ -169,4 +169,4 @@ public: #define LIST_ROUND_TO_INTEGER_TESTS_WITH_MODES(F, I, func) \ LIST_ROUND_TO_INTEGER_TESTS_HELPER(F, I, func, true) -#endif // LLVM_LIBC_TEST_SRC_MATH_ROUNDTOINTEGERTEST_H +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_ROUNDTOINTEGERTEST_H diff --git a/libc/test/src/math/smoke/TruncTest.h b/libc/test/src/math/smoke/TruncTest.h index 8334a7b..71b1ab9 100644 --- a/libc/test/src/math/smoke/TruncTest.h +++ b/libc/test/src/math/smoke/TruncTest.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_TEST_SRC_MATH_SMOKE_TRUNCTEST_H +#define LLVM_LIBC_TEST_SRC_MATH_SMOKE_TRUNCTEST_H + #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -66,3 +69,5 @@ public: TEST_F(LlvmLibcTruncTest, SpecialNumbers) { testSpecialNumbers(&func); } \ TEST_F(LlvmLibcTruncTest, RoundedNubmers) { testRoundedNumbers(&func); } \ TEST_F(LlvmLibcTruncTest, Fractions) { testFractions(&func); } + +#endif // LLVM_LIBC_TEST_SRC_MATH_SMOKE_TRUNCTEST_H diff --git a/libc/test/src/time/TmHelper.h b/libc/test/src/time/TmHelper.h index d8e638d..1621094 100644 --- a/libc/test/src/time/TmHelper.h +++ b/libc/test/src/time/TmHelper.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_TEST_SRC_TIME_TM_HELPER_H -#define LLVM_LIBC_TEST_SRC_TIME_TM_HELPER_H +#ifndef LLVM_LIBC_TEST_SRC_TIME_TMHELPER_H +#define LLVM_LIBC_TEST_SRC_TIME_TMHELPER_H #include <time.h> @@ -40,4 +40,4 @@ static inline void initialize_tm_data(struct tm *tm_data, int year, int month, } // namespace tmhelper } // namespace LIBC_NAMESPACE -#endif // LLVM_LIBC_TEST_SRC_TIME_TM_HELPER_H +#endif // LLVM_LIBC_TEST_SRC_TIME_TMHELPER_H |