[libc-commits] [libc] a442c62 - [libc] Make div test names unique

Alex Brachet via libc-commits libc-commits at lists.llvm.org
Thu Jul 7 08:08:03 PDT 2022


Author: Alex Brachet
Date: 2022-07-07T15:06:52Z
New Revision: a442c628882eb07fffff8c9f7c87a317af14555a

URL: https://github.com/llvm/llvm-project/commit/a442c628882eb07fffff8c9f7c87a317af14555a
DIFF: https://github.com/llvm/llvm-project/commit/a442c628882eb07fffff8c9f7c87a317af14555a.diff

LOG: [libc] Make div test names unique

In Fuchsia, all tests in a directory, ie stdlib, are linked
into one executable, this causes problems for multiple
definitions of the vtables of the div tests because their
class has the same name. This patch just trivially changes
their name to be unique between all div tests.

Differential revision: https://reviews.llvm.org/D129248

Added: 
    

Modified: 
    libc/test/src/stdlib/DivTest.h

Removed: 
    


################################################################################
diff  --git a/libc/test/src/stdlib/DivTest.h b/libc/test/src/stdlib/DivTest.h
index 13978ac531e4b..6d35943f0d684 100644
--- a/libc/test/src/stdlib/DivTest.h
+++ b/libc/test/src/stdlib/DivTest.h
@@ -34,4 +34,4 @@ class DivTest : public __llvm_libc::testing::Test {
 
 #define LIST_DIV_TESTS(IntType, ReturnType, func)                              \
   using LlvmLibcDivTest = DivTest<IntType, ReturnType>;                        \
-  TEST_F(LlvmLibcDivTest, SimpleTest) { simpleTest(func); }
+  TEST_F(LlvmLibcDivTest, SimpleTest##ReturnType) { simpleTest(func); }


        


More information about the libc-commits mailing list