diff options
author | Pavel Labath <pavel@labath.sk> | 2019-05-03 08:06:28 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-05-03 08:06:28 +0000 |
commit | d214898f1ff4164c9e0c2a18d9f392c1c2331cbd (patch) | |
tree | afd3165f6da4a4e1f7d6aeb8468e9efeae42dc3e /lldb/packages/Python/lldbsuite/test | |
parent | d020f270d617fe37a8926e820adb1b2a951417be (diff) | |
download | bcm5719-llvm-d214898f1ff4164c9e0c2a18d9f392c1c2331cbd.tar.gz bcm5719-llvm-d214898f1ff4164c9e0c2a18d9f392c1c2331cbd.zip |
Split TestVLA into two and XFAIL one part
The part which checks whether vla_expr shows up in the variable list
does not pass on non-darwin platforms. Add the appropriate decorator.
llvm-svn: 359867
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py | 13 |
1 files changed, 10 insertions, 3 deletions
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 864b401de6f..1453f2c8792 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py +++ b/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py @@ -1,6 +1,6 @@ import lldb from lldbsuite.test.lldbtest import * -from lldbsuite.test import decorators +from lldbsuite.test.decorators import * import lldbsuite.test.lldbutil as lldbutil @@ -8,8 +8,9 @@ class TestVLA(TestBase): mydir = TestBase.compute_mydir(__file__) - @decorators.skipIf(compiler="clang", compiler_version=['<', '8.0']) - def test_vla(self): + @skipIf(compiler="clang", compiler_version=['<', '8.0']) + @expectedFailureAll(oslist=no_match(lldbplatformutil.getDarwinOSTriples())) + def test_variable_list(self): self.build() _, process, _, _ = lldbutil.run_to_source_breakpoint( self, "break here", lldb.SBFileSpec('main.c')) @@ -26,6 +27,12 @@ class TestVLA(TestBase): for value in all_locals: self.assertFalse("vla_expr" in value.name) + @decorators.skipIf(compiler="clang", compiler_version=['<', '8.0']) + def test_vla(self): + self.build() + _, process, _, _ = lldbutil.run_to_source_breakpoint( + self, "break here", lldb.SBFileSpec('main.c')) + def test(a, array): for i in range(a): self.expect("fr v vla[%d]"%i, substrs=["int", "%d"%(a-i)]) |