From 02a2fdd335bd206c30a11e1653795a704718486c Mon Sep 17 00:00:00 2001 From: wisberg Date: Sat, 31 May 2003 22:09:53 +0000 Subject: [PATCH] tests harness' handling of code calling System.exit --- tests/harness/systemExit/SystemExit.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/harness/systemExit/SystemExit.java diff --git a/tests/harness/systemExit/SystemExit.java b/tests/harness/systemExit/SystemExit.java new file mode 100644 index 000000000..612fa74a2 --- /dev/null +++ b/tests/harness/systemExit/SystemExit.java @@ -0,0 +1,16 @@ + +public class SystemExit { + + /** + * Exit via System.exit(int); + * @param args null/empty String[], or integer exit value in args[0] + * @throws Exception + */ + public static void main(String[] args) throws Exception { + int result = 0; + if ((null != args) && (0 < args.length)) { + result = Integer.valueOf(args[0]).intValue(); + } + System.exit(result); + } +} \ No newline at end of file -- 2.39.5