diff options
Diffstat (limited to 'tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java')
-rw-r--r-- | tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java b/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java index bdabcc53..61966903 100644 --- a/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java +++ b/tests/src/com/cyanogenmod/explorer/commands/shell/ProcessIdCommandTest.java @@ -15,10 +15,6 @@ */ package com.cyanogenmod.explorer.commands.shell; - -import com.cyanogenmod.explorer.ExplorerApplication; -import com.cyanogenmod.explorer.util.CommandHelper; - /** * A class for testing the {@link ProcessIdCommand} command. * @@ -34,21 +30,6 @@ public class ProcessIdCommandTest extends AbstractConsoleTest { return false; } - /** - * Method that performs a test over id command. - * - * @throws Exception If test failed - */ - public void testId() throws Exception { - Integer main = Integer.valueOf(android.os.Process.myPid()); - Integer pid = - CommandHelper.getProcessId( - getContext(), - ExplorerApplication.MAIN_PROCESS, getConsole()); - assertNotNull("pid==null", pid); //$NON-NLS-1$ - assertTrue( - String.format("pid != main process id (%d)", main), //$NON-NLS-1$ - pid.compareTo(main) == 0); - } - + // Can't perform any test, because a running program in a shell is needed, and PID of + // shell is not available for external use outside the console. } |