ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.172 by jsr166, Fri Oct 9 01:26:36 2015 UTC vs.
Revision 1.173 by jsr166, Fri Oct 9 16:24:12 2015 UTC

# Line 193 | Line 193 | public class JSR166TestCase extends Test
193  
194      // Instrumentation to debug very rare, but very annoying hung test runs.
195      static volatile TestCase currentTestCase;
196 <    static volatile int currentRun = 0;
196 >    // static volatile int currentRun = 0;
197      static {
198          Runnable checkForWedgedTest = new Runnable() { public void run() {
199              // avoid spurious reports with enormous runsPerTest
# Line 203 | Line 203 | public class JSR166TestCase extends Test
203                  catch (InterruptedException unexpected) { break; }
204                  if (lastTestCase == currentTestCase) {
205                      System.err.printf(
206 <                        "Looks like we're stuck running test: %s (%d/%d)%n",
207 <                        lastTestCase, currentRun, runsPerTest);
206 >                        "Looks like we're stuck running test: %s%n",
207 >                        lastTestCase);
208 > //                     System.err.printf(
209 > //                         "Looks like we're stuck running test: %s (%d/%d)%n",
210 > //                         lastTestCase, currentRun, runsPerTest);
211                      System.err.println("availableProcessors=" +
212                          Runtime.getRuntime().availableProcessors());
213                      System.err.printf("cpu model = %s%n", cpuModel());
# Line 238 | Line 241 | public class JSR166TestCase extends Test
241  
242      protected void runTest() throws Throwable {
243          for (int i = 0; i < runsPerTest; i++) {
244 <            currentRun = i;
244 >            // currentRun = i;
245              if (profileTests)
246                  runTestProfiled();
247              else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines