Many many test failures after some recent changes. The problem is lldbtest.getPlatfor...
authorGreg Clayton <gclayton@apple.com>
Thu, 2 Apr 2015 18:24:03 +0000 (18:24 +0000)
committerGreg Clayton <gclayton@apple.com>
Thu, 2 Apr 2015 18:24:03 +0000 (18:24 +0000)
commite0d0a7652d40fc890009d048ba3e7532068af1d0
treee21c817f47dcecf8688c168b3412b16142355e17
parenta5cad0d6a66378a3429cb94d557f192d4223180e
Many many test failures after some recent changes. The problem is lldbtest.getPlatform() returns the "OS" of the selected platform's triple. This is "macosx" for desktop macosx and "ios" for iOS. It used to be "darwin".

There was a lot of code that was checking "if self.getPlatform() == 'darwin'" which is not correct. I fixed this by adding a:

lldbtest.platformIsDarwin()

which returns true if the current platform's OS is "macosx", "ios" or "darwin". These three valid darwin are now returned by a static function:

lldbtest.getDarwinOSTriples()

Fixed up all places that has 'if self.getPlatform() == "darwin":' with "if self.platformIsDarwin()" and all instances of 'if self.getPlatform() != "darwin":' with "if not self.platformIsDarwin()". I also fixed some darwin decorator functions to do the right thing as well.

llvm-svn: 233933
15 files changed:
lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
lldb/test/functionalities/abbreviation/TestAbbreviations.py
lldb/test/functionalities/inferior-changed/TestInferiorChanged.py
lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py
lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
lldb/test/functionalities/inline-stepping/TestInlineStepping.py
lldb/test/functionalities/load_unload/TestLoadUnload.py
lldb/test/functionalities/register/TestRegisters.py
lldb/test/lang/c/array_types/TestArrayTypes.py
lldb/test/lang/c/function_types/TestFunctionTypes.py
lldb/test/lang/cpp/class_static/TestStaticVariables.py
lldb/test/lang/cpp/namespace/TestNamespace.py
lldb/test/lldbtest.py
lldb/test/python_api/event/TestEvents.py
lldb/test/terminal/TestSTTYBeforeAndAfter.py