From 9be6f2d8567da5ee7628049a452f989b1410402c Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 12 May 2005 11:54:22 +0000 Subject: harness LTW support - untested --- tests/harness/fork/MainWriter.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/harness/fork/MainWriter.java (limited to 'tests/harness') diff --git a/tests/harness/fork/MainWriter.java b/tests/harness/fork/MainWriter.java new file mode 100644 index 000000000..a7b3993da --- /dev/null +++ b/tests/harness/fork/MainWriter.java @@ -0,0 +1,14 @@ + +public class MainWriter { + public static void main(String[] args) { + if (args.length > 0) { + if ("err".equals(args[0])) { + System.err.println("System.err"); + } else if ("out".equals(args[0])) { + System.out.println("System.out"); + } else if ("Error".equals(args[0])) { + throw new Error(); + } + } + } +} \ No newline at end of file -- cgit v1.2.3