[lldb] [test] Do not check libc function names in NetBSD core test
authorMichal Gorny <mgorny@gentoo.org>
Fri, 8 Mar 2019 22:32:35 +0000 (22:32 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 8 Mar 2019 22:32:35 +0000 (22:32 +0000)
Fix the NetBSD core test not to verify libc function names in backtrace.
This obviously requires the same libc.so as originally used to produce
the core file, and so it is going to fail everywhere except on my
system.

llvm-svn: 355747

lldb/packages/Python/lldbsuite/test/functionalities/postmortem/netbsd-core/TestNetBSDCore.py

index ca234ec..55651d5 100644 (file)
@@ -130,8 +130,8 @@ class NetBSDCoreCommonTestCase(TestBase):
         for i in range(len(backtrace)):
             frame = thread.GetFrameAtIndex(i)
             self.assertTrue(frame)
-            self.assertEqual(frame.GetFunctionName(), backtrace[i])
             if not backtrace[i].startswith('_'):
+                self.assertEqual(frame.GetFunctionName(), backtrace[i])
                 self.assertEqual(frame.GetLineEntry().GetLine(),
                                  line_number(src, "Frame " + backtrace[i]))
                 self.assertEqual(