< prev index next >

test/jdk/java/lang/RuntimeTests/exec/ExitValue.java

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 94,104 **** checkPosixShellExitValue("exit", 0); checkPosixShellExitValue("exit 7", 7); ! int sigoffset = UnixCommands.isSunOS ? 0 : 128; checkPosixShellExitValue(UnixCommands.kill() + " -9 $$", sigoffset+9); } public static class Run { public static void main (String[] argv) { --- 94,104 ---- checkPosixShellExitValue("exit", 0); checkPosixShellExitValue("exit 7", 7); ! int sigoffset = 128; checkPosixShellExitValue(UnixCommands.kill() + " -9 $$", sigoffset+9); } public static class Run { public static void main (String[] argv) {
< prev index next >