#113139 Disable timeout during debug. release60-beta1-javaeesdk_root version-2-3-112
authorjqian@netbeans.org
Wed, 22 Aug 2007 02:29:57 +0000
changeset 10745d27bea888fb
parent 1073 7b15db5ed09b
child 1075 2718c74e32fe
#113139 Disable timeout during debug.
compapp.projects.jbi/catdsrc/org/netbeans/modules/compapp/catd/ConfiguredTest.java
     1.1 --- a/compapp.projects.jbi/catdsrc/org/netbeans/modules/compapp/catd/ConfiguredTest.java	Wed Aug 22 02:21:01 2007 +0000
     1.2 +++ b/compapp.projects.jbi/catdsrc/org/netbeans/modules/compapp/catd/ConfiguredTest.java	Wed Aug 22 02:29:57 2007 +0000
     1.3 @@ -614,7 +614,12 @@
     1.4              return;
     1.5          }
     1.6          int concurrentInvokes = Integer.parseInt(concurrentInvokesStr);
     1.7 -        int testTimeout = Integer.parseInt(testTimeoutStr);
     1.8 +        int testTimeout = Integer.parseInt(testTimeoutStr);        
     1.9 +        if ("true".equals(System.getProperty("inDebug"))) {
    1.10 +            testTimeout = 0; // disable timeout
    1.11 +        }
    1.12 +        //System.out.println("timeout: " + testTimeout);
    1.13 +        
    1.14          int invokesPerThread = 1;
    1.15          if (invokesPerThreadStr != null) {
    1.16              invokesPerThread = Integer.parseInt(invokesPerThreadStr);
    1.17 @@ -769,8 +774,7 @@
    1.18                      + " in Development");
    1.19              return;
    1.20          }
    1.21 -        String description = mProperties.getProperty("description");
    1.22 -        
    1.23 +        String description = mProperties.getProperty("description");        
    1.24          //String concurrentInvokesStr = mProperties.getProperty("concurrentinvokes");
    1.25          String comparisonType = "#" + mProperties.getProperty("comparisontype");
    1.26          String testTimeoutStr = mProperties.getProperty("testtimeout");
    1.27 @@ -789,6 +793,9 @@
    1.28          if (testTimeoutStr != null && !testTimeoutStr.trim().equals("")) {
    1.29              testTimeout = Integer.parseInt(testTimeoutStr);
    1.30          }
    1.31 +        if ("true".equals(System.getProperty("inDebug"))) {
    1.32 +            testTimeout = 0; // disable timeout
    1.33 +        }
    1.34          System.out.print("Test " + inputDirName + "\\" + testPropertiesFileName);
    1.35          System.out.flush();
    1.36          
    1.37 @@ -943,6 +950,9 @@
    1.38          if (testTimeoutStr != null && !testTimeoutStr.trim().equals("")) {
    1.39              testTimeout = Integer.parseInt(testTimeoutStr);
    1.40          }
    1.41 +        if ("true".equals(System.getProperty("inDebug"))) {
    1.42 +            testTimeout = 0; // disable timeout
    1.43 +        }
    1.44          System.out.print("Test " + inputDirName + "\\" + testPropertiesFileName);
    1.45          System.out.flush();
    1.46          
    1.47 @@ -1087,6 +1097,9 @@
    1.48          if (testTimeoutStr != null && !testTimeoutStr.trim().equals("")) {
    1.49              testTimeout = Integer.parseInt(testTimeoutStr);
    1.50          }
    1.51 +        if ("true".equals(System.getProperty("inDebug"))) {
    1.52 +            testTimeout = 0; // disable timeout
    1.53 +        }
    1.54          System.out.print("Test " + inputDirName + "\\" + testPropertiesFileName);
    1.55          System.out.flush();
    1.56          
    1.57 @@ -1276,6 +1289,7 @@
    1.58       * outputfile.1=DocElemOutput.xml
    1.59       */
    1.60      public void testFileRequest() throws Exception {
    1.61 +        
    1.62          String description = mProperties.getProperty("description");
    1.63          String clearFeeder = mProperties.getProperty("clearfeederdirectory");
    1.64          String clearEater = mProperties.getProperty("cleareaterdirectory");
    1.65 @@ -1306,7 +1320,9 @@
    1.66          if (testTimeoutStr != null) {
    1.67              testTimeoutSecs = Integer.parseInt(testTimeoutStr);
    1.68          }
    1.69 -        
    1.70 +        if ("true".equals(System.getProperty("inDebug"))) {
    1.71 +            testTimeoutSecs = 0; // disable timeout
    1.72 +        }
    1.73          System.out.print("Test " + inputDirName + "\\" + testPropertiesFileName);
    1.74          System.out.flush();
    1.75          try {
    1.76 @@ -1390,6 +1406,7 @@
    1.77       * output.expected=expected.xml
    1.78       */
    1.79      public void testFtpRequest() throws Exception {
    1.80 +                
    1.81          String description = mProperties.getProperty("test.desc");
    1.82          String clearInputDir = mProperties.getProperty("clear.input.dir");
    1.83          String clearOutputDir = mProperties.getProperty("clear.output.dir");
    1.84 @@ -1438,6 +1455,9 @@
    1.85          if (testTimeoutStr != null) {
    1.86              testTimeoutSecs = Integer.parseInt(testTimeoutStr);
    1.87          }
    1.88 +        if ("true".equals(System.getProperty("inDebug"))) {
    1.89 +            testTimeoutSecs = 0; // disable timeout
    1.90 +        }
    1.91          
    1.92          if (inputCountStr != null) {
    1.93              inputCount = Integer.parseInt(inputCountStr);