[Lldb-commits] [lldb] r239220 - Use skipIf instead of skipUnless in TestTerminal for better readability.

Chaoren Lin chaorenl at google.com
Sat Jun 6 07:51:36 PDT 2015


Author: chaoren
Date: Sat Jun  6 09:51:34 2015
New Revision: 239220

URL: http://llvm.org/viewvc/llvm-project?rev=239220&view=rev
Log:
Use skipIf instead of skipUnless in TestTerminal for better readability.

Modified:
    lldb/trunk/test/functionalities/tty/TestTerminal.py

Modified: lldb/trunk/test/functionalities/tty/TestTerminal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/tty/TestTerminal.py?rev=239220&r1=239219&r2=239220&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/tty/TestTerminal.py (original)
+++ lldb/trunk/test/functionalities/tty/TestTerminal.py Sat Jun  6 09:51:34 2015
@@ -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?





More information about the lldb-commits mailing list