소스 검색

tests harness' handling of code calling System.exit

tags/V1_1_0
wisberg 21 년 전
부모
커밋
02a2fdd335
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 16
    0
      tests/harness/systemExit/SystemExit.java

+ 16
- 0
tests/harness/systemExit/SystemExit.java 파일 보기


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…
취소
저장