[Lldb-commits] [lldb] r219981 - Some more test marking
Enrico Granata
egranata at apple.com
Thu Oct 16 16:03:07 PDT 2014
Author: enrico
Date: Thu Oct 16 18:03:06 2014
New Revision: 219981
URL: http://llvm.org/viewvc/llvm-project?rev=219981&view=rev
Log:
Some more test marking
Modified:
lldb/trunk/test/api/multiple-debuggers/multi-process-driver.cpp
lldb/trunk/test/api/multithreaded/TestMultithreaded.py
lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
Modified: lldb/trunk/test/api/multiple-debuggers/multi-process-driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multiple-debuggers/multi-process-driver.cpp?rev=219981&r1=219980&r2=219981&view=diff
==============================================================================
--- lldb/trunk/test/api/multiple-debuggers/multi-process-driver.cpp (original)
+++ lldb/trunk/test/api/multiple-debuggers/multi-process-driver.cpp Thu Oct 16 18:03:06 2014
@@ -17,17 +17,10 @@
#include <stdlib.h>
-#ifdef __APPLE__
-#include <LLDB/LLDB.h>
-#include <LLDB/SBCommandInterpreter.h>
-#include <LLDB/SBCommandReturnObject.h>
-#include <LLDB/SBDebugger.h>
-#else
#include "lldb/API/LLDB.h"
-#include <lldb/API/SBCommandInterpreter.h>
-#include <lldb/API/SBCommandReturnObject.h>
-#include <lldb/API/SBDebugger.h>
-#endif
+#include "lldb/API/SBCommandInterpreter.h"
+#include "lldb/API/SBCommandReturnObject.h"
+#include "lldb/API/SBDebugger.h"
#include <chrono>
#include <thread>
Modified: lldb/trunk/test/api/multithreaded/TestMultithreaded.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multithreaded/TestMultithreaded.py?rev=219981&r1=219980&r2=219981&view=diff
==============================================================================
--- lldb/trunk/test/api/multithreaded/TestMultithreaded.py (original)
+++ lldb/trunk/test/api/multithreaded/TestMultithreaded.py Thu Oct 16 18:03:06 2014
@@ -18,7 +18,7 @@ class SBBreakpointCallbackCase(TestBase)
self.buildProgram('inferior.cpp', self.inferior)
self.addTearDownHook(lambda: os.remove(self.inferior))
- @unittest2.expectedFailure # llvm.org/pr16000: SBBreakpoint.SetCallback() does nothing
+ @unittest2.expectedFailure("llvm.org/pr16000: SBBreakpoint.SetCallback() does nothing")
@skipIfi386
@skipIfRemote
@skipIfLinuxClang # buildbot clang version unable to use libstdc++ with c++11
Modified: lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py?rev=219981&r1=219980&r2=219981&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py (original)
+++ lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py Thu Oct 16 18:03:06 2014
@@ -15,7 +15,7 @@ class ObjCDynamicValueTestCase(TestBase)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
@dsym_test
- @expectedFailureDarwin("llvm.org/pr20271")
+ @expectedFailureDarwin("llvm.org/pr20271 rdar://18684107")
def test_get_dynamic_objc_vals_with_dsym(self):
"""Test fetching ObjC dynamic values."""
if self.getArchitecture() == 'i386':
@@ -27,7 +27,7 @@ class ObjCDynamicValueTestCase(TestBase)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
@dwarf_test
- @expectedFailureDarwin("llvm.org/pr20271")
+ @expectedFailureDarwin("llvm.org/pr20271 rdar://18684107")
def test_get_objc_dynamic_vals_with_dwarf(self):
"""Test fetching ObjC dynamic values."""
if self.getArchitecture() == 'i386':
@@ -126,14 +126,15 @@ class ObjCDynamicValueTestCase(TestBase)
# This test is not entirely related to the main thrust of this test case, but since we're here,
# try stepping into setProperty, and make sure we get into the version in Source:
+ self.runCmd("log enable lldb step")
thread.StepInto()
threads = lldbutil.get_stopped_threads (process, lldb.eStopReasonPlanComplete)
self.assertTrue (len(threads) == 1)
line_entry = threads[0].GetFrameAtIndex(0).GetLineEntry()
- self.assertTrue (line_entry.GetLine() == self.set_property_line)
- self.assertTrue (line_entry.GetFileSpec().GetFilename() == self.source_name)
+ self.assertEqual (line_entry.GetLine(), self.set_property_line)
+ self.assertEqual (line_entry.GetFileSpec().GetFilename(), self.source_name)
# Okay, back to the main business. Continue to the handle_SourceBase and make sure we get the correct dynamic value.
More information about the lldb-commits
mailing list