summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Fiala <tfiala@google.com>2014-03-25 18:55:48 +0000
committerTodd Fiala <tfiala@google.com>2014-03-25 18:55:48 +0000
commite373b68977381bcb38a6dc3adbfdd43841ae8221 (patch)
treefafcda177e54bf45f6682579f294326ccf93cd89
parent25e0454f100c9455c2034a2fc41fdd69d3b52804 (diff)
downloadbcm5719-llvm-e373b68977381bcb38a6dc3adbfdd43841ae8221.tar.gz
bcm5719-llvm-e373b68977381bcb38a6dc3adbfdd43841ae8221.zip
Fixed up intermittently failing tests to skip on Linux.
Also added 'import sys' on some tests that are using non-standard unittest2.skipUnless blocks with code that is intended to do things that we have more specializes @* attributes for. These skip conditions were failing to execute due to missing import, causing darwin-only tests to run on Linux regardless. Will file a bug for that separately. llvm-svn: 204747
-rw-r--r--lldb/test/expression_command/call-restarts/TestCallThatRestarts.py1
-rw-r--r--lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py4
-rw-r--r--lldb/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py3
-rw-r--r--lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py1
4 files changed, 8 insertions, 1 deletions
diff --git a/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py b/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py
index 0eb1b3ce369..87497386c8b 100644
--- a/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py
+++ b/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py
@@ -27,6 +27,7 @@ class ExprCommandThatRestartsTestCase(TestBase):
self.call_function()
@dwarf_test
+ @skipIfLinux # llvm.org/pr19246: intermittent failure
def test_with_dwarf(self):
"""Test calling std::String member function."""
self.buildDwarf()
diff --git a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
index ddc30dbd86a..d10eab81281 100644
--- a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
+++ b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
@@ -3,6 +3,7 @@
import os, time
import unittest2
import lldb, lldbutil
+import sys
from lldbtest import *
class CrashingRecursiveInferiorTestCase(TestBase):
@@ -66,6 +67,7 @@ class CrashingRecursiveInferiorTestCase(TestBase):
self.recursive_inferior_crashing_step_after_break()
@skipIfFreeBSD # llvm.org/pr16684
+ @expectedFailureLinux('llvm.org/pr16684')
def test_recursive_inferior_crashing_step_after_break_dwarf(self):
"""Test that lldb functions correctly after stepping through a crash."""
self.buildDwarf()
@@ -78,7 +80,7 @@ class CrashingRecursiveInferiorTestCase(TestBase):
self.recursive_inferior_crashing_expr_step_expr()
@expectedFailureFreeBSD('llvm.org/pr15989') # Couldn't allocate space for the stack frame
- @expectedFailureLinux # llvm.org/pr15989 - Couldn't allocate space for the stack frame
+ @expectedFailureLinux('llvm.org/pr15989') # Couldn't allocate space for the stack frame
def test_recursive_inferior_crashing_expr_step_and_expr_dwarf(self):
"""Test that lldb expressions work before and after stepping after a crash."""
self.buildDwarf()
diff --git a/lldb/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py b/lldb/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
index c3521a3ff81..22f186e9478 100644
--- a/lldb/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
+++ b/lldb/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
@@ -6,6 +6,7 @@ import os
import re
import unittest2
import lldb, lldbutil
+import sys
from lldbtest import *
class ReturnValueTestCase(TestBase):
@@ -40,6 +41,7 @@ class ReturnValueTestCase(TestBase):
@python_api_test
@dwarf_test
+ @skipIfLinux # intermittent failure - llvm.org/pr19247
def test_step_over_with_dwarf_python(self):
"""Test stepping over using avoid-no-debug with dwarf."""
self.buildDwarf()
@@ -57,6 +59,7 @@ class ReturnValueTestCase(TestBase):
@python_api_test
@dwarf_test
+ @skipIfLinux # intermittent failure - llvm.org/pr19247
def test_step_in_with_dwarf_python(self):
"""Test stepping in using avoid-no-debug with dwarf."""
self.buildDwarf()
diff --git a/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py b/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
index e74c37f7f3c..1fc8e597f7c 100644
--- a/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
+++ b/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
@@ -4,6 +4,7 @@ import os, time
import unittest2
import lldb
import pexpect
+import sys
from lldbtest import *
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
OpenPOWER on IntegriCloud