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.174 by jsr166, Fri Oct 9 19:09:59 2015 UTC vs.
Revision 1.175 by jsr166, Sun Oct 11 23:07:44 2015 UTC

# Line 211 | Line 211 | public class JSR166TestCase extends Test
211   //                     System.err.printf(
212   //                         "Looks like we're stuck running test: %s (%d/%d)%n",
213   //                         lastTestCase, currentRun, runsPerTest);
214 <                    System.err.println("availableProcessors=" +
215 <                        Runtime.getRuntime().availableProcessors());
216 <                    System.err.printf("cpu model = %s%n", cpuModel());
214 > //                     System.err.println("availableProcessors=" +
215 > //                         Runtime.getRuntime().availableProcessors());
216 > //                     System.err.printf("cpu model = %s%n", cpuModel());
217                      dumpTestThreads();
218                      // one stack dump is probably enough; more would be spam
219                      break;
# Line 225 | Line 225 | public class JSR166TestCase extends Test
225          thread.start();
226      }
227  
228 <    public static String cpuModel() {
229 <        try {
230 <            Matcher matcher = Pattern.compile("model name\\s*: (.*)")
231 <                .matcher(new String(
232 <                     Files.readAllBytes(Paths.get("/proc/cpuinfo")), "UTF-8"));
233 <            matcher.find();
234 <            return matcher.group(1);
235 <        } catch (Exception ex) { return null; }
236 <    }
228 > //     public static String cpuModel() {
229 > //         try {
230 > //             Matcher matcher = Pattern.compile("model name\\s*: (.*)")
231 > //                 .matcher(new String(
232 > //                      Files.readAllBytes(Paths.get("/proc/cpuinfo")), "UTF-8"));
233 > //             matcher.find();
234 > //             return matcher.group(1);
235 > //         } catch (Exception ex) { return null; }
236 > //     }
237  
238      public void runBare() throws Throwable {
239          currentTestCase = this;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines