diff options
author | Pavel Labath <labath@google.com> | 2016-11-07 09:58:58 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-11-07 09:58:58 +0000 |
commit | 1071ac193589338bc055e338926d661ab5bf93f6 (patch) | |
tree | 2469d7b23614d698a54bda2152988f1be501d11b /lldb/packages/Python/lldbsuite/test | |
parent | 0a8f1fe6f7a89f5e71979fd9a910cf0607cf4f55 (diff) | |
download | bcm5719-llvm-1071ac193589338bc055e338926d661ab5bf93f6.tar.gz bcm5719-llvm-1071ac193589338bc055e338926d661ab5bf93f6.zip |
Make space for FreeBSD core file tests
This renames the functionalities/postmortem/linux-core to elf-core and puts the
"linux" part into the individual names of the core files. Since the tests for
linux and freebsd core files are going to be very similar, having them close
together means they can reuse most of the plumbing.
llvm-svn: 286101
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/TestLinuxCore.py) | 20 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.c (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.c) | 0 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.core (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.core) | bin | 40960 -> 40960 bytes | |||
-rwxr-xr-x | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.out (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.out) | bin | 2330 -> 2330 bytes | |||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-i386.core (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/i386.core) | bin | 28672 -> 28672 bytes | |||
-rwxr-xr-x | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-i386.out (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/i386.out) | bin | 1971 -> 1971 bytes | |||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-s390x.core (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/s390x.core) | bin | 16384 -> 16384 bytes | |||
-rwxr-xr-x | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-s390x.out (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/s390x.out) | bin | 2824 -> 2824 bytes | |||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-x86_64.core (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/x86_64.core) | bin | 40960 -> 40960 bytes | |||
-rwxr-xr-x | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-x86_64.out (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/x86_64.out) | bin | 2575 -> 2575 bytes | |||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/main.c (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/main.c) | 0 | ||||
-rwxr-xr-x | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/make-core.sh (renamed from lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/make-core.sh) | 0 |
12 files changed, 10 insertions, 10 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/TestLinuxCore.py b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py index da6098f88f9..42542099b9f 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/TestLinuxCore.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py @@ -30,13 +30,13 @@ class LinuxCoreTestCase(TestBase): @skipIf(triple='^mips') def test_i386(self): """Test that lldb can read the process information from an i386 linux core file.""" - self.do_test("i386", self._i386_pid, self._i386_regions) + self.do_test("linux-i386", self._i386_pid, self._i386_regions) @skipIf(oslist=['windows']) @skipIf(triple='^mips') def test_x86_64(self): """Test that lldb can read the process information from an x86_64 linux core file.""" - self.do_test("x86_64", self._x86_64_pid, self._x86_64_regions) + self.do_test("linux-x86_64", self._x86_64_pid, self._x86_64_regions) # This seems to hang on non-s390x platforms for some reason. Disabling # for now. @@ -44,7 +44,7 @@ class LinuxCoreTestCase(TestBase): @skipIf(triple='^mips') def test_s390x(self): """Test that lldb can read the process information from an s390x linux core file.""" - self.do_test("s390x", self._s390x_pid, self._s390x_regions) + self.do_test("linux-s390x", self._s390x_pid, self._s390x_regions) @skipIf(oslist=['windows']) @skipIf(triple='^mips') @@ -52,9 +52,9 @@ class LinuxCoreTestCase(TestBase): """Test that we read the information from the core correctly even if we have a running process with the same PID around""" try: - shutil.copyfile("x86_64.out", "x86_64-pid.out") - shutil.copyfile("x86_64.core", "x86_64-pid.core") - with open("x86_64-pid.core", "r+b") as f: + shutil.copyfile("linux-x86_64.out", "linux-x86_64-pid.out") + shutil.copyfile("linux-x86_64.core", "linux-x86_64-pid.core") + with open("linux-x86_64-pid.core", "r+b") as f: # These are offsets into the NT_PRSTATUS and NT_PRPSINFO structures in the note # segment of the core file. If you update the file, these offsets may need updating # as well. (Notes can be viewed with readelf --notes.) @@ -70,10 +70,10 @@ class LinuxCoreTestCase(TestBase): # works. f.seek(pid_offset) f.write(struct.pack("<I", os.getpid())) - self.do_test("x86_64-pid", os.getpid(), self._x86_64_regions) + self.do_test("linux-x86_64-pid", os.getpid(), self._x86_64_regions) finally: - self.RemoveTempFile("x86_64-pid.out") - self.RemoveTempFile("x86_64-pid.core") + self.RemoveTempFile("linux-x86_64-pid.out") + self.RemoveTempFile("linux-x86_64-pid.core") @skipIf(oslist=['windows']) @skipIf(triple='^mips') @@ -102,7 +102,7 @@ class LinuxCoreTestCase(TestBase): # without destroying this process, run the test which opens another core file with the # same pid - self.do_test("x86_64", self._x86_64_pid, self._x86_64_regions) + self.do_test("linux-x86_64", self._x86_64_pid, self._x86_64_regions) def check_memory_regions(self, process, region_count): region_list = process.GetMemoryRegions() diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.c b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.c index da49a00996e..da49a00996e 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.c +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.c diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.core b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.core Binary files differindex 423413070c7..423413070c7 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.core +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.core diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.out b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.out Binary files differindex 2fddf3e8f80..2fddf3e8f80 100755 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/altmain.out +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/altmain.out diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/i386.core b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-i386.core Binary files differindex f8deff474d1..f8deff474d1 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/i386.core +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-i386.core diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/i386.out b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-i386.out Binary files differindex 3cdd4eeca10..3cdd4eeca10 100755 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/i386.out +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-i386.out diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/s390x.core b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-s390x.core Binary files differindex b97fc43e967..b97fc43e967 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/s390x.core +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-s390x.core diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/s390x.out b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-s390x.out Binary files differindex 640fbdc257d..640fbdc257d 100755 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/s390x.out +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-s390x.out diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/x86_64.core b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-x86_64.core Binary files differindex e2fa69e4558..e2fa69e4558 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/x86_64.core +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-x86_64.core diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/x86_64.out b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-x86_64.out Binary files differindex 842402fd519..842402fd519 100755 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/x86_64.out +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/linux-x86_64.out diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/main.c b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/main.c index f5bde4171ca..f5bde4171ca 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/main.c +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/main.c diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/make-core.sh b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/make-core.sh index 9dd83f19c76..9dd83f19c76 100755 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/make-core.sh +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/make-core.sh |