Skip to content

Commit

Permalink
[lldb] Skip part of TestDataFormatterAdv (llvm#72233)
Browse files Browse the repository at this point in the history
libstdc++ data formatter simply forwards to the `const char *` formatter
-- which means it suffers from the same problem/bug as that one.
  • Loading branch information
labath authored and justinfargnoli committed Jan 28, 2024
1 parent e37f24c commit aa20120
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -6,6 +6,7 @@
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
import re


class AdvDataFormatterTestCase(TestBase):
Expand Down Expand Up @@ -298,7 +299,11 @@ def cleanup():
self.runCmd("settings set target.max-string-summary-length 5")
some_string = self.frame().FindVariable("some_string")
some_string_summary = some_string.GetSummary()
self.assertEqual(some_string_summary, '"01234"...')
if (re.match(r"^std::__\w+::", some_string.GetTypeName())):
self.assertEqual(some_string_summary, '"01234"...')
else:
#libstdc++ string formatter suffers from the same problem as some_cstring below
pass

some_carr = self.frame().FindVariable("some_carr")
some_carr_summary = some_carr.GetSummary()
Expand Down

0 comments on commit aa20120

Please sign in to comment.