This revision was automatically updated to reflect the committed changes. Closed by commit rL250899: Skip TestMultithreaded on Windows. (authored by amccarth).
Changed prior to commit: http://reviews.llvm.org/D13923?vs=37953&id=38012#toc Repository: rL LLVM http://reviews.llvm.org/D13923 Files: lldb/trunk/test/api/multithreaded/TestMultithreaded.py Index: lldb/trunk/test/api/multithreaded/TestMultithreaded.py =================================================================== --- lldb/trunk/test/api/multithreaded/TestMultithreaded.py +++ lldb/trunk/test/api/multithreaded/TestMultithreaded.py @@ -1,4 +1,4 @@ -"""Test the lldb public C++ api breakpoint callbacks. """ +"""Test the lldb public C++ api breakpoint callbacks.""" import os, re, StringIO import unittest2 @@ -10,41 +10,32 @@ mydir = TestBase.compute_mydir(__file__) - def setUp(self): - TestBase.setUp(self) - self.lib_dir = os.environ["LLDB_LIB_DIR"] - self.implib_dir = os.environ["LLDB_IMPLIB_DIR"] - self.inferior = 'inferior_program' - if self.getLldbArchitecture() == self.getArchitecture(): - self.buildProgram('inferior.cpp', self.inferior) - self.addTearDownHook(lambda: os.remove(self.inferior)) - @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_breakpoint_callback(self): """Test the that SBBreakpoint callback is invoked when a breakpoint is hit. """ self.build_and_test('driver.cpp test_breakpoint_callback.cpp', 'test_breakpoint_callback') @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFlakeyFreeBSD @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_sb_api_listener_event_description(self): """ Test the description of an SBListener breakpoint event is valid.""" self.build_and_test('driver.cpp listener_test.cpp test_listener_event_description.cpp', 'test_listener_event_description') pass @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFlakeyFreeBSD @expectedFlakeyLinux # Driver occasionally returns '1' as exit status @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_sb_api_listener_event_process_state(self): """ Test that a registered SBListener receives events when a process changes state. @@ -56,9 +47,9 @@ @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFlakeyFreeBSD @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.8"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_sb_api_listener_resume(self): """ Test that a process can be resumed from a non-main thread. """ self.build_and_test('driver.cpp listener_test.cpp test_listener_resume.cpp', @@ -75,6 +66,12 @@ if self.getLldbArchitecture() != self.getArchitecture(): self.skipTest("This test is only run if the target arch is the same as the lldb binary arch") + self.lib_dir = os.environ["LLDB_LIB_DIR"] + self.implib_dir = os.environ["LLDB_IMPLIB_DIR"] + self.inferior = 'inferior_program' + self.buildProgram('inferior.cpp', self.inferior) + self.addTearDownHook(lambda: os.remove(self.inferior)) + self.buildDriver(sources, test_name) self.addTearDownHook(lambda: os.remove(test_name))
Index: lldb/trunk/test/api/multithreaded/TestMultithreaded.py =================================================================== --- lldb/trunk/test/api/multithreaded/TestMultithreaded.py +++ lldb/trunk/test/api/multithreaded/TestMultithreaded.py @@ -1,4 +1,4 @@ -"""Test the lldb public C++ api breakpoint callbacks. """ +"""Test the lldb public C++ api breakpoint callbacks.""" import os, re, StringIO import unittest2 @@ -10,41 +10,32 @@ mydir = TestBase.compute_mydir(__file__) - def setUp(self): - TestBase.setUp(self) - self.lib_dir = os.environ["LLDB_LIB_DIR"] - self.implib_dir = os.environ["LLDB_IMPLIB_DIR"] - self.inferior = 'inferior_program' - if self.getLldbArchitecture() == self.getArchitecture(): - self.buildProgram('inferior.cpp', self.inferior) - self.addTearDownHook(lambda: os.remove(self.inferior)) - @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_breakpoint_callback(self): """Test the that SBBreakpoint callback is invoked when a breakpoint is hit. """ self.build_and_test('driver.cpp test_breakpoint_callback.cpp', 'test_breakpoint_callback') @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFlakeyFreeBSD @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_sb_api_listener_event_description(self): """ Test the description of an SBListener breakpoint event is valid.""" self.build_and_test('driver.cpp listener_test.cpp test_listener_event_description.cpp', 'test_listener_event_description') pass @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFlakeyFreeBSD @expectedFlakeyLinux # Driver occasionally returns '1' as exit status @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.9"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_sb_api_listener_event_process_state(self): """ Test that a registered SBListener receives events when a process changes state. @@ -56,9 +47,9 @@ @skipIfRemote @skipIfNoSBHeaders + @skipIfWindows # clang-cl does not support throw or catch (llvm.org/pr24538) @expectedFlakeyFreeBSD @expectedFailureAll("llvm.org/pr23139", oslist=["linux"], compiler="gcc", compiler_version=[">=","4.8"], archs=["x86_64"]) - @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch def test_sb_api_listener_resume(self): """ Test that a process can be resumed from a non-main thread. """ self.build_and_test('driver.cpp listener_test.cpp test_listener_resume.cpp', @@ -75,6 +66,12 @@ if self.getLldbArchitecture() != self.getArchitecture(): self.skipTest("This test is only run if the target arch is the same as the lldb binary arch") + self.lib_dir = os.environ["LLDB_LIB_DIR"] + self.implib_dir = os.environ["LLDB_IMPLIB_DIR"] + self.inferior = 'inferior_program' + self.buildProgram('inferior.cpp', self.inferior) + self.addTearDownHook(lambda: os.remove(self.inferior)) + self.buildDriver(sources, test_name) self.addTearDownHook(lambda: os.remove(test_name))
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits