From: wisberg Date: Sat, 31 May 2003 22:09:53 +0000 (+0000) Subject: tests harness' handling of code calling System.exit X-Git-Tag: V1_1_0~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=02a2fdd335bd206c30a11e1653795a704718486c;p=aspectj.git tests harness' handling of code calling System.exit --- 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