From a0ac5afb0a83a1d8179ef81e6bebba3d0f2ab1da Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 2 May 2019 23:49:55 +0000 Subject: [PATCH] Fix tests on non-Darwin platforms. llvm-svn: 359846 --- lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py | 3 ++- .../lang/objcxx/hide-runtime-values/TestObjCXXHideRuntimeValues.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py b/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py index 30a190b..864b401 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py +++ b/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py @@ -23,7 +23,8 @@ class TestVLA(TestBase): var_opts.SetIncludeRuntimeSupportValues(False) var_opts.SetUseDynamic(lldb.eDynamicCanRunTarget) all_locals = self.frame().GetVariables(var_opts) - self.assertEqual(len(all_locals), 1) + for value in all_locals: + self.assertFalse("vla_expr" in value.name) def test(a, array): for i in range(a): diff --git a/lldb/packages/Python/lldbsuite/test/lang/objcxx/hide-runtime-values/TestObjCXXHideRuntimeValues.py b/lldb/packages/Python/lldbsuite/test/lang/objcxx/hide-runtime-values/TestObjCXXHideRuntimeValues.py index 04b2fa2..5fe14fe 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/objcxx/hide-runtime-values/TestObjCXXHideRuntimeValues.py +++ b/lldb/packages/Python/lldbsuite/test/lang/objcxx/hide-runtime-values/TestObjCXXHideRuntimeValues.py @@ -13,6 +13,10 @@ class TestObjCXXHideRuntimeSupportValues(TestBase): def setUp(self): TestBase.setUp(self) + @skipIfFreeBSD + @skipIfLinux + @skipIfWindows + @skipIfNetBSD def test_hide_runtime_support_values(self): self.build() _, process, _, _ = lldbutil.run_to_source_breakpoint( -- 2.7.4