8251127: clean up FileInstaller $test.src $cwd in remaining vmTestbase_vm_compiler tests

Reviewed-by: kvn
This commit is contained in:
Igor Ignatyev 2020-08-26 17:06:15 -07:00
parent f586b6c0cd
commit c98fd38979
112 changed files with 193 additions and 428 deletions

View File

@ -1778,12 +1778,12 @@ vmTestbase_vm_compiler_quick = \
vmTestbase/jit/t/t105/t105.java \
vmTestbase/jit/t/t106/t106.java \
vmTestbase/jit/t/t107/t107.java \
vmTestbase/jit/t/t108/TestDescription.java \
vmTestbase/jit/t/t109/TestDescription.java \
vmTestbase/jit/t/t110/TestDescription.java \
vmTestbase/jit/t/t111/TestDescription.java \
vmTestbase/jit/t/t112/TestDescription.java \
vmTestbase/jit/t/t113/TestDescription.java \
vmTestbase/jit/t/t108/t108.java \
vmTestbase/jit/t/t109/t109.java \
vmTestbase/jit/t/t110/t110.java \
vmTestbase/jit/t/t111/t111.java \
vmTestbase/jit/t/t112/t112.java \
vmTestbase/jit/t/t113/t113.java \
vmTestbase/jit/tiered/Test.java \
vmTestbase/jit/verifier/VerifyInitLocal/VerifyInitLocal.java \
vmTestbase/jit/verifier/VerifyMergeStack/VerifyMergeStack.java \

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 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
@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.FloatingPoint.FPCompare.TestFPBinop.TestFPBinop
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.collapse.collapse
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.inline.inline003.inline003
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.inline.inline004.inline004
*/

View File

@ -33,7 +33,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.inline.inline007.inline007
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.series.series
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t001.t001
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t002.t002
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t003.t003
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t004.t004
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t005.t005
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t006.t006
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t011.t011
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t013.t013
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t015.t015
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t016.t016
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t017.t017
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t018.t018
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t019.t019
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t020.t020
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t021.t021
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t022.t022
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t023.t023
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t024.t024
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t025.t025
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t027.t027
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t028.t028
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t029.t029
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t030.t030
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t031.t031
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t032.t032
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t033.t033
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t034.t034
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t035.t035
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t036.t036
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t037.t037
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t038.t038
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t039.t039
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t040.t040
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t042.t042
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t043.t043
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t046.t046
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t047.t047
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t048.t048
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t049.t049
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t051.t051
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t052.t052
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t053.t053
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t054.t054
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t055.t055
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t056.t056
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t057.t057
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t058.t058
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t059.t059
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t060.t060
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t061.t061
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t062.t062
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t063.t063
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t064.t064
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t065.t065
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t067.t067
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t068.t068
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t069.t069
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t070.t070
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t071.t071
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t072.t072
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t073.t073
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t074.t074
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t075.t075
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t076.t076
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t077.t077
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t078.t078
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t079.t079
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t080.t080
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t081.t081
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t086.t086
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @build ExecDriver
*
* @comment build all dependencies
@ -46,6 +45,7 @@
* @comment run the test
* @run driver ExecDriver --java
* -cp .${path.separator}${test.class.path}
* -Dtest.src=${test.src}
* jit.t.t087.t087
* -WorkDir ./jit/t/t087
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @build ExecDriver
*
* @comment build all dependencies
@ -46,6 +45,7 @@
* @comment run the test
* @run driver ExecDriver --java
* -cp .${path.separator}${test.class.path}
* -Dtest.src=${test.src}
* jit.t.t088.t088
* -WorkDir ./jit/t/t088
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t091.t091
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t093.t093
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t094.t094
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t095.t095
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t096.t096
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t098.t098
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t099.t099
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t100.t100
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t101.t101
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t102.t102
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t103.t103
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t104.t104
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t105.t105
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t106.t106
*/

View File

@ -29,7 +29,6 @@
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @run main/othervm jit.t.t107.t107
*/

View File

@ -1,39 +0,0 @@
/*
* Copyright (c) 2017, 2018, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
*
* @summary converted from VM Testbase jit/t/t108.
* VM Testbase keywords: [jit, quick]
* VM Testbase readme:
* Clone of t083. The pass file changed in JDK 1.2.
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @build jit.t.t108.t108
* @run driver ExecDriver --java jit.t.t108.t108
*/

View File

@ -1,3 +1,3 @@
java.lang.Throwable
at jit.t.t108.t108.doit(t108.java:51)
at jit.t.t108.t108.main(t108.java:40)
at jit.t.t108.t108.doit(t108.java:65)
at jit.t.t108.t108.main(t108.java:55)

View File

@ -20,34 +20,48 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
*
* @summary converted from VM Testbase jit/t/t108.
* VM Testbase keywords: [jit, quick]
* VM Testbase readme:
* Clone of t083. The pass file changed in JDK 1.2.
*
* @library /vmTestbase
* /test/lib
* @build jit.t.t108.t108
* @comment ExecDriver is used so golden file won't depend on jtreg
* @run driver ExecDriver --java
* -Dtest.src=${test.src}
* jit.t.t108.t108
*/
package jit.t.t108;
import java.io.*;
import nsk.share.TestFailure;
import nsk.share.GoldChecker;
// THIS TEST IS LINE NUMBER SENSITIVE
// Uncaught exception, one jit'd frame on the stack.
public class t108
{
public class t108 {
public static final GoldChecker goldChecker = new GoldChecker( "t108" );
public static void main(String argv[])
{
public static void main(String[] argv) {
try {
doit();
} catch (Throwable t) {
StringWriter sr = new StringWriter();
t.printStackTrace(new PrintWriter(sr));
t108.goldChecker.print(sr.toString().replace("\t", " "));
StringWriter sr = new StringWriter();
t.printStackTrace(new PrintWriter(sr));
t108.goldChecker.print(sr.toString().replace("\t", " "));
}
t108.goldChecker.check();
}
static void doit() throws Throwable
{
static void doit() throws Throwable {
Throwable t = new Throwable();
throw t;
}

View File

@ -1,39 +0,0 @@
/*
* Copyright (c) 2017, 2018, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
*
* @summary converted from VM Testbase jit/t/t109.
* VM Testbase keywords: [jit, quick]
* VM Testbase readme:
* Clone of t084. The pass file changed in JDK 1.2.
*
* @library /vmTestbase
* /test/lib
* @run driver jdk.test.lib.FileInstaller . .
* @build jit.t.t109.t109
* @run driver ExecDriver --java jit.t.t109.t109
*/

View File

@ -1,3 +1,3 @@
java.lang.ArithmeticException: / by zero
at jit.t.t109.t109.doit(t109.java:53)
at jit.t.t109.t109.main(t109.java:40)
at jit.t.t109.t109.doit(t109.java:69)
at jit.t.t109.t109.main(t109.java:57)

View File

@ -20,34 +20,50 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
*
* @summary converted from VM Testbase jit/t/t109.
* VM Testbase keywords: [jit, quick]
* VM Testbase readme:
* Clone of t084. The pass file changed in JDK 1.2.
*
* @library /vmTestbase
* /test/lib
* @build jit.t.t109.t109
* @comment ExecDriver is used so golden file won't depend on jtreg
* @run driver ExecDriver --java
* -Dtest.src=${test.src}
* jit.t.t109.t109
*/
package jit.t.t109;
import java.io.*;
import nsk.share.TestFailure;
import nsk.share.GoldChecker;
import java.io.PrintWriter;
import java.io.StringWriter;
// THIS TEST IS LINE NUMBER SENSITIVE
// Uncaught exception, one jit'd frame on the stack, implicit exception.
public class t109
{
public static final GoldChecker goldChecker = new GoldChecker( "t109" );
public class t109 {
public static final GoldChecker goldChecker = new GoldChecker("t109");
public static void main(String argv[])
{
public static void main(String[] argv) {
try {
doit();
} catch (Throwable t) {
StringWriter sr = new StringWriter();
t.printStackTrace(new PrintWriter(sr));
t109.goldChecker.print(sr.toString().replace("\t", " "));
StringWriter sr = new StringWriter();
t.printStackTrace(new PrintWriter(sr));
t109.goldChecker.print(sr.toString().replace("\t", " "));
}
t109.goldChecker.check();
}
public static void doit()
{
public static void doit() {
int i = 0;
int j = 39;
j /= i;

Some files were not shown because too many files have changed in this diff Show More