Fix assertion from previous fix for debian os watchpoints.

Also mark one of the tests as expected fail on Linux due to the debian fix.

llvm-svn: 181448
This commit is contained in:
Matt Kopec
2013-05-08 16:52:34 +00:00
parent 667f12b53d
commit 52c8476a47
2 changed files with 3 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ public:
}
lldb::addr_t GetHWAddress() const {
assert(GetKind() == eWatchpointMessage);
assert(GetKind() == eWatchpointMessage || GetKind() == eTraceMessage);
return m_addr;
}

View File

@@ -20,7 +20,7 @@ class WatchedVariableHitWhenInScopeTestCase(TestBase):
# clearer API to express this.
#
@expectedFailureDarwin
@unittest2.expectedFailure
@dsym_test
def test_watched_var_should_only_hit_when_in_scope_with_dsym(self):
"""Test that a variable watchpoint should only hit when in scope."""
@@ -28,7 +28,7 @@ class WatchedVariableHitWhenInScopeTestCase(TestBase):
self.setTearDownCleanup(dictionary=self.d)
self.watched_var()
@expectedFailureDarwin
@unittest2.expectedFailure
@dwarf_test
def test_watched_var_should_only_hit_when_in_scope_with_dwarf(self):
"""Test that a variable watchpoint should only hit when in scope."""