Index: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py =================================================================== --- packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py +++ packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py @@ -26,17 +26,23 @@ _x86_64_regions = 5 _s390x_regions = 2 + _freebsd_x86_64_pid = 0 + _freebsd_x86_64_tid = 100283 + _freebsd_x86_64_regions = 2 + @skipIf(oslist=['windows']) @skipIf(triple='^mips') def test_i386(self): """Test that lldb can read the process information from an i386 linux core file.""" - self.do_test("linux-i386", self._i386_pid, self._i386_regions) + self.do_test("linux-i386", self._i386_pid, 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("linux-x86_64", self._x86_64_pid, self._x86_64_regions) + self.do_test("linux-x86_64", self._x86_64_pid, self._x86_64_pid, + self._x86_64_regions) # This seems to hang on non-s390x platforms for some reason. Disabling # for now. @@ -44,11 +50,13 @@ @skipIf(triple='^mips') def test_s390x(self): """Test that lldb can read the process information from an s390x linux core file.""" - self.do_test("linux-s390x", self._s390x_pid, self._s390x_regions) + self.do_test("linux-s390x", self._s390x_pid, self._s390x_pid, + self._s390x_regions) def test_freebsd_x86_64(self): """Test that lldb can read the process information from an x86_64 FreeBSD core file.""" - self.do_test("freebsd-x86_64", self._x86_64_pid, self._x86_64_regions) + self.do_test("freebsd-x86_64", self._freebsd_x86_64_pid, + self._freebsd_x86_64_tid, self._freebsd_x86_64_regions) @skipIf(oslist=['windows']) @skipIf(triple='^mips') @@ -74,7 +82,8 @@ # works. f.seek(pid_offset) f.write(struct.pack("