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 |
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()); |
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 |