Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for _exit (0.19 sec)

  1. guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java

      @Override
      protected void setUp() {
        runtimeMock = mock(Runtime.class);
      }
    
      public void testExiter() {
        new Exiter(runtimeMock).uncaughtException(new Thread(), new Exception());
        verify(runtimeMock).exit(1);
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java

      @Override
      protected void setUp() {
        runtimeMock = mock(Runtime.class);
      }
    
      public void testExiter() {
        new Exiter(runtimeMock).uncaughtException(new Thread(), new Exception());
        verify(runtimeMock).exit(1);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                assertTrue(deployedFile.exists());
                assertEquals("dummy", new String(Files.readAllBytes(deployedFile.toPath()), StandardCharsets.UTF_8).trim());
            } finally {
                sessionScope.exit();
            }
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

       *   ...
       * </pre>
       *
       * <p>The returned handler logs any exception at severity {@code SEVERE} and then shuts down the
       * process with an exit status of 1, indicating abnormal termination.
       */
      public static UncaughtExceptionHandler systemExit() {
        return new Exiter(Runtime.getRuntime());
      }
    
      @VisibleForTesting
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. .teamcity/.mvn/wrapper/MavenWrapperDownloader.java

            try {
                downloadFileFromURL(url, outputFile);
                System.out.println("Done");
                System.exit(0);
            } catch (Throwable e) {
                System.out.println("- Error downloading");
                e.printStackTrace();
                System.exit(1);
            }
        }
    
        private static void downloadFileFromURL(String urlString, File destination) throws Exception {
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Feb 26 01:48:39 GMT 2020
    - 4.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(TimeUnit.SECONDS.toMillis(10));
      }
    
      static final class BrokenChannel extends AbstractInterruptibleChannel {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                final int exitValue = p.exitValue();
                if (exitValue != 0) {
                    logger.warn("{} is failed (exit code:{}, timeout:{}): {}", getName(), exitValue, task.isExecuted(), commandList);
                }
    
                if (logger.isDebugEnabled()) {
                    logger.debug("{} is finished with exit code {}.", getName(), exitValue);
                }
            } catch (final Exception e) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/job/SuggestJob.java

                currentProcess.waitFor();
                it.join(5000);
    
                final int exitValue = currentProcess.exitValue();
    
                if (logger.isInfoEnabled()) {
                    logger.info("SuggestCreator: Exit Code={} - Process Output:\n{}", exitValue, it.getOutput());
                }
                if (exitValue != 0) {
                    final StringBuilder out = new StringBuilder();
                    if (processTimeout) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

                Thread.interrupted();
                if (interruptingThread.isAlive()) {
                  // This will be hidden by test-output redirection:
                  logger.severe("InterruptenatorTask did not exit; future tests may be affected");
                  /*
                   * This won't do any good under JUnit 3, but I'll leave it around in
                   * case we ever switch to JUnit 4:
                   */
                  fail();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (1)
  10. maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java

                    for (MojoExecution forkedExecution : fork.getValue()) {
                        debugMojoExecution(forkedExecution);
                    }
    
                    logger.debug("--- exit fork of " + fork.getKey() + " for " + mojoExecId + " ---");
                }
            }
    
            logger.debug("-----------------------------------------------------------------------");
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 5.8K bytes
    - Viewed (0)
Back to top