From: Chaoren Lin Date: Sat, 6 Jun 2015 14:51:34 +0000 (+0000) Subject: Use skipIf instead of skipUnless in TestTerminal for better readability. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcd2786a6d7795ede2255ac9bc5b2d8964210b42;p=platform%2Fupstream%2Fllvm.git Use skipIf instead of skipUnless in TestTerminal for better readability. llvm-svn: 239220 --- diff --git a/lldb/test/functionalities/tty/TestTerminal.py b/lldb/test/functionalities/tty/TestTerminal.py index 8777756..3905459 100644 --- a/lldb/test/functionalities/tty/TestTerminal.py +++ b/lldb/test/functionalities/tty/TestTerminal.py @@ -20,7 +20,7 @@ class LaunchInTerminalTestCase(TestBase): # If the test is being run under sudo, the spawned terminal won't retain that elevated # privilege so it can't open the socket to talk back to the test case - @unittest2.skipUnless(not hasattr(os, 'geteuid') or os.geteuid() != 0, + @unittest2.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0, "test cannot be run as root") # Do we need to disable this test if the testsuite is being run on a remote system?