forked from OSchip/llvm-project
Blocks are only reliably supported on Darwin. Disable the test otherwise.
llvm-svn: 266400
This commit is contained in:
parent
cf63b64fc6
commit
91de55f161
|
@ -8,6 +8,7 @@ import unittest2
|
||||||
import os, time
|
import os, time
|
||||||
import lldb
|
import lldb
|
||||||
from lldbsuite.test.lldbtest import *
|
from lldbsuite.test.lldbtest import *
|
||||||
|
from lldbsuite.test.decorators import *
|
||||||
import lldbsuite.test.lldbutil as lldbutil
|
import lldbsuite.test.lldbutil as lldbutil
|
||||||
|
|
||||||
class BlocksTestCase(TestBase):
|
class BlocksTestCase(TestBase):
|
||||||
|
@ -36,6 +37,7 @@ class BlocksTestCase(TestBase):
|
||||||
self.wait_for_breakpoint()
|
self.wait_for_breakpoint()
|
||||||
|
|
||||||
@unittest2.expectedFailure("rdar://problem/10413887 - Call blocks in expressions")
|
@unittest2.expectedFailure("rdar://problem/10413887 - Call blocks in expressions")
|
||||||
|
@skipUnlessDarwin
|
||||||
def test_expr(self):
|
def test_expr(self):
|
||||||
self.launch_common()
|
self.launch_common()
|
||||||
|
|
||||||
|
@ -51,6 +53,7 @@ class BlocksTestCase(TestBase):
|
||||||
self.expect("expression (int)neg (-12)", VARIABLES_DISPLAYED_CORRECTLY,
|
self.expect("expression (int)neg (-12)", VARIABLES_DISPLAYED_CORRECTLY,
|
||||||
substrs = ["= 12"])
|
substrs = ["= 12"])
|
||||||
|
|
||||||
|
@skipUnlessDarwin
|
||||||
def test_define(self):
|
def test_define(self):
|
||||||
self.launch_common()
|
self.launch_common()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue