From 95026bf97ff3f986ec9cbf385b61bbf6377e3301 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Fri, 7 Jun 2024 11:28:21 -0700 Subject: [PATCH] Add output to manual #29 test --- src/test/java/failing/ManualIssue29Repro.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/failing/ManualIssue29Repro.java b/src/test/java/failing/ManualIssue29Repro.java index 916d68a..4ed875f 100644 --- a/src/test/java/failing/ManualIssue29Repro.java +++ b/src/test/java/failing/ManualIssue29Repro.java @@ -24,15 +24,19 @@ public class ManualIssue29Repro implements Runnable private static XMLEventAllocator allocator = EventAllocatorImpl.getDefaultInstance(); private static AsyncXMLInputFactory inputFactory = new InputFactoryImpl(); - public static void main(String[] args) throws InterruptedException { + public static void main(String[] args) throws InterruptedException + { + System.out.println("Starting test..."); ExecutorService ex = Executors.newFixedThreadPool(NUM_THREADS); for (int i = 0; i < 100000; i++) { ex.submit(new ManualIssue29Repro(i)); } + System.out.println("Stopping test..."); ex.shutdown(); ex.awaitTermination(Integer.MAX_VALUE, TimeUnit.SECONDS); + System.out.println("Completed: SUCCESS"); } private final int count;