mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
tests harness' handling of code calling System.exit
This commit is contained in:
parent
fc011ca05e
commit
02a2fdd335
16
tests/harness/systemExit/SystemExit.java
Normal file
16
tests/harness/systemExit/SystemExit.java
Normal file
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user