Correctly deal with abi::__cxa_demangle() on LCC

abi::__cxa_demangle("7MyArrayIbLi42EE", nullptr, nullptr, nullptr)
returns "MyArray<bool, 42>" on GCC/x86_64, but "MyArray<bool, (int)42>"
on LCC/e2k. This behavior causes googletest-list-tests-unittest test to
fail.

This commit fixes that by slightly modifying the regex to match this
behavior of abi::__cxa_demangle().
This commit is contained in:
makise-homura 2024-08-22 22:41:22 +03:00
parent 24699b4926
commit 2aa1e7cc67

View File

@ -74,7 +74,7 @@ TypedTest/0\. # TypeParam = (VeryLo{245}|class VeryLo{239})\.\.\.
TypedTest/1\. # TypeParam = int\s*\*( __ptr64)? TypedTest/1\. # TypeParam = int\s*\*( __ptr64)?
TestA TestA
TestB TestB
TypedTest/2\. # TypeParam = .*MyArray<bool,\s*42> TypedTest/2\. # TypeParam = .*MyArray<bool,\s*(\(int\))?42>
TestA TestA
TestB TestB
My/TypeParamTest/0\. # TypeParam = (VeryLo{245}|class VeryLo{239})\.\.\. My/TypeParamTest/0\. # TypeParam = (VeryLo{245}|class VeryLo{239})\.\.\.
@ -83,7 +83,7 @@ My/TypeParamTest/0\. # TypeParam = (VeryLo{245}|class VeryLo{239})\.\.\.
My/TypeParamTest/1\. # TypeParam = int\s*\*( __ptr64)? My/TypeParamTest/1\. # TypeParam = int\s*\*( __ptr64)?
TestA TestA
TestB TestB
My/TypeParamTest/2\. # TypeParam = .*MyArray<bool,\s*42> My/TypeParamTest/2\. # TypeParam = .*MyArray<bool,\s*(\(int\))?42>
TestA TestA
TestB TestB
MyInstantiation/ValueParamTest\. MyInstantiation/ValueParamTest\.