(String[] args)
| 4 | |
| 5 | public class TwoTestBug { |
| 6 | public static void main(String[] args) throws Exception { |
| 7 | int i = 0; |
| 8 | try { |
| 9 | for (; ; i++) { |
| 10 | Simulate.logger.fatal("----------- CBasicSimpleAddConcurrent {} -----------", i); |
| 11 | var test1 = new CBasicSimpleAddConcurrent(); |
| 12 | try { |
| 13 | test1.testBenchmark(); |
| 14 | } catch (Throwable ex) { // print stacktrace. |
| 15 | Simulate.logger.fatal("CBasicSimpleAddConcurrent", ex); |
| 16 | } |
| 17 | Simulate.logger.fatal("----------- Simulate {} -----------", i); |
| 18 | Tasks.clearAllCounters(); |
| 19 | var simulate = new Simulate(); |
| 20 | simulate.Infinite = false; |
| 21 | simulate.Before(); |
| 22 | try { |
| 23 | simulate.testMain(); |
| 24 | } catch (Throwable e) { // print stacktrace. rethrow |
| 25 | Simulate.logger.fatal("main exception:", e); |
| 26 | throw e; |
| 27 | } finally { |
| 28 | simulate.After(); |
| 29 | } |
| 30 | } |
| 31 | } finally { |
| 32 | Simulate.logger.fatal("----------- End {} -----------", i); |
| 33 | } |
| 34 | } |
| 35 | } |
nothing calls this directly
no test coverage detected