diff options
| author | Greg Clayton <gclayton@apple.com> | 2015-04-02 18:24:03 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2015-04-02 18:24:03 +0000 |
| commit | e0d0a7652d40fc890009d048ba3e7532068af1d0 (patch) | |
| tree | e21c817f47dcecf8688c168b3412b16142355e17 /lldb/test/terminal/TestSTTYBeforeAndAfter.py | |
| parent | a5cad0d6a66378a3429cb94d557f192d4223180e (diff) | |
| download | bcm5719-llvm-e0d0a7652d40fc890009d048ba3e7532068af1d0.tar.gz bcm5719-llvm-e0d0a7652d40fc890009d048ba3e7532068af1d0.zip | |
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
Diffstat (limited to 'lldb/test/terminal/TestSTTYBeforeAndAfter.py')
| -rw-r--r-- | lldb/test/terminal/TestSTTYBeforeAndAfter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/terminal/TestSTTYBeforeAndAfter.py b/lldb/test/terminal/TestSTTYBeforeAndAfter.py index 2d80265253e..54d655907e1 100644 --- a/lldb/test/terminal/TestSTTYBeforeAndAfter.py +++ b/lldb/test/terminal/TestSTTYBeforeAndAfter.py @@ -40,7 +40,7 @@ class CommandLineCompletionTestCase(TestBase): if self.TraceOn(): child.logfile = sys.stdout - if self.getPlatform() == "darwin": + if self.platformIsDarwin(): child.sendline('set env(TERM) xterm') else: child.sendline('set env(TERM) vt100') |

