diff options
author | Adrian McCarthy <amccarth@google.com> | 2015-11-20 18:18:21 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2015-11-20 18:18:21 +0000 |
commit | f9a2697e137c1873bff55e27018bd7dc4a2e2405 (patch) | |
tree | e47ea4dde7ba6aec16028873401cb8679c6b3402 /lldb/packages/Python/lldbsuite/test | |
parent | af75dab3834f4afdc168df45b8bc93b44219c4ef (diff) | |
download | bcm5719-llvm-f9a2697e137c1873bff55e27018bd7dc4a2e2405.tar.gz bcm5719-llvm-f9a2697e137c1873bff55e27018bd7dc4a2e2405.zip |
Revert "FOO"
Accidentally commited before I was done.
This reverts commit 2ec2da4ee52780582d5e9c88b2e982a688fbdbe1.
llvm-svn: 253685
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
3 files changed, 0 insertions, 85 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/Makefile deleted file mode 100644 index b76d2cdb93f..00000000000 --- a/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -LEVEL = ../../make - -CXX_SOURCES := main.cpp - -include $(LEVEL)/Makefile.rules - diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/TestProcessSaveCore.py b/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/TestProcessSaveCore.py deleted file mode 100644 index d66baca8d0a..00000000000 --- a/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/TestProcessSaveCore.py +++ /dev/null @@ -1,58 +0,0 @@ -""" -Test saving a core file (or mini dump). -""" - -from __future__ import print_function - -import os, time -import lldb -from lldbsuite.test.lldbtest import * - -class ProcessSaveCoreTestCase(TestBase): - - mydir = TestBase.compute_mydir(__file__) - - @not_remote_testsuite_ready - @skipIf(oslist=not_in(['windows'])) - def test_cannot_save_core_unless_process_stopped(self): - """Test that SaveCore fails if the process isn't stopped.""" - self.build() - exe = os.path.join(os.getcwd(), "a.out") - core = os.path.join(os.getcwd(), "core.dmp") - target = self.dbg.CreateTarget(exe) - process = target.LaunchSimple(None, None, self.get_process_working_directory()) - self.assertNotEqual(process.GetState(), lldb.eStateStopped) - error = process.SaveCore(core) - self.assertTrue(error.Fail()) - - @not_remote_testsuite_ready - @skipIf(oslist=not_in(['windows'])) - def test_save_windows_mini_dump(self): - """Test that we can save a Windows mini dump.""" - self.build() - exe = os.path.join(os.getcwd(), "a.out") - core = os.path.join(os.getcwd(), "core.dmp") - try: - target = self.dbg.CreateTarget(exe) - breakpoint = target.BreakpointCreateByName("bar") - process = target.LaunchSimple(None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped) - self.assertTrue(process.SaveCore(core)) - self.assertTrue(os.path.isfile(core)) - self.assertTrue(process.Kill().Success()) - - # To verify, we'll launch with the mini dump, and ensure that we see - # the executable in the module list. - target = self.dbg.CreateTarget(None) - process = target.LoadCore(core) - files = [target.GetModuleAtIndex(i).GetFileSpec() for i in range(0, target.GetNumModules())] - paths = [os.path.join(f.GetDirectory(), f.GetFilename()) for f in files] - self.assertTrue(exe in paths) - - finally: - # Clean up the mini dump file. - self.assertTrue(self.dbg.DeleteTarget(target)) - if (os.path.isfile(core)): - os.unlink(core) - - diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/main.cpp deleted file mode 100644 index 4037ea522ca..00000000000 --- a/lldb/packages/Python/lldbsuite/test/functionalities/process_save_core/main.cpp +++ /dev/null @@ -1,21 +0,0 @@ -int global = 42; - -int -bar(int x) -{ - int y = 4*x + global; - return y; -} - -int -foo(int x) -{ - int y = 2*bar(3*x); - return y; -} - -int -main() -{ - return 0 * foo(1); -} |