[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
This commit is contained in:
Alex Brachet 2022-07-07 15:06:52 +00:00
parent fad93cd682
commit a442c62888

View file

@ -34,4 +34,4 @@ public:
#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); }