diff options
author | Greg Clayton <gclayton@apple.com> | 2014-09-19 20:11:50 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-09-19 20:11:50 +0000 |
commit | 615eb7e6097c035e0b64992798fda7c939e93303 (patch) | |
tree | 5ce9aa21d619eff5b07fba9b6f14cadbdb81b333 /lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py | |
parent | 4f1561a5dd875711fcb5018de791bf953d25c817 (diff) | |
download | bcm5719-llvm-615eb7e6097c035e0b64992798fda7c939e93303.tar.gz bcm5719-llvm-615eb7e6097c035e0b64992798fda7c939e93303.zip |
Test suite runs better again after recent fixes that would select a platform if a "file a.out" auto selected a different platform than the selected one.
Changes include:
- fix it so you can select the "host" platform using "platform select host"
- change all callbacks that create platforms to returns shared pointers
- fix TestImageListMultiArchitecture.py to restore the "host" platform by running "platform select host"
- Add a new "PlatformSP Platform::Find(const ConstString &name)" method to get a cached platform
- cache platforms that are created and re-use them instead of always creating a new one
llvm-svn: 218145
Diffstat (limited to 'lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py')
-rw-r--r-- | lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py b/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py index b9bd95c0569..4a783e7530e 100644 --- a/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py +++ b/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py @@ -36,6 +36,8 @@ class TestImageListMultiArchitecture(TestBase): self.runCmd("file {}".format(file_name)) self.match("image list -t -A", [expected_triple_and_arch_regex]) + # Revert to the host platform after all of this is done + self.runCmd("platform select host") if __name__ == '__main__': import atexit |