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().
pull/4607/head
makise-homura 9 months ago
parent 24699b4926
commit 2aa1e7cc67
  1. 4
      googletest/test/googletest-list-tests-unittest.py

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

Loading…
Cancel
Save