Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8251132: make main classes public in vmTestbase/jit tests
Backport-of: 65577cf
  • Loading branch information
GoeLin committed Jan 14, 2022
1 parent 00dc442 commit 3a96302
Show file tree
Hide file tree
Showing 138 changed files with 366 additions and 498 deletions.
5 changes: 2 additions & 3 deletions test/hotspot/jtreg/vmTestbase/jit/DivTest/DivTest.java
Expand Up @@ -32,15 +32,14 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.DivTest.DivTest
* @run driver ExecDriver --java jit.DivTest.DivTest
* @run main/othervm jit.DivTest.DivTest
*/

package jit.DivTest;

import nsk.share.TestFailure;

class DivTest{
public class DivTest{
static int n;
static boolean test1 (int n1, int n2) {
try {
Expand Down
Expand Up @@ -29,15 +29,14 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Filtering.Filtering
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Filtering.Filtering
* @run main/othervm jit.FloatingPoint.gen_math.Filtering.Filtering
*/

package jit.FloatingPoint.gen_math.Filtering;

import nsk.share.TestFailure;

class Filtering
public class Filtering
{
static int N = 1000;
static double xx[];
Expand Down
Expand Up @@ -29,15 +29,14 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Loops01.Loops01
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Loops01.Loops01
* @run main/othervm jit.FloatingPoint.gen_math.Loops01.Loops01
*/

package jit.FloatingPoint.gen_math.Loops01;

import nsk.share.TestFailure;

class Loops01
public class Loops01
{

static final int N = 500;
Expand Down
Expand Up @@ -29,16 +29,15 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Loops02.Loops02
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Loops02.Loops02
* @run main/othervm jit.FloatingPoint.gen_math.Loops02.Loops02
*/

package jit.FloatingPoint.gen_math.Loops02;

// Test working with loops and random functions.
import nsk.share.TestFailure;

class Loops02
public class Loops02
{

static final int N = 300;
Expand Down
Expand Up @@ -29,15 +29,14 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Loops03.Loops03
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Loops03.Loops03
* @run main/othervm jit.FloatingPoint.gen_math.Loops03.Loops03
*/

package jit.FloatingPoint.gen_math.Loops03;

import nsk.share.TestFailure;

class Loops03
public class Loops03
{

static final int N = 100000;
Expand Down
Expand Up @@ -29,16 +29,15 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Loops04.Loops04
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Loops04.Loops04
* @run main/othervm jit.FloatingPoint.gen_math.Loops04.Loops04
*/

package jit.FloatingPoint.gen_math.Loops04;

// Test working with nested loops.
import nsk.share.TestFailure;

class Loops04
public class Loops04
{

public static void main (String args[])
Expand Down
Expand Up @@ -29,15 +29,14 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Loops05.Loops05
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Loops05.Loops05
* @run main/othervm jit.FloatingPoint.gen_math.Loops05.Loops05
*/

package jit.FloatingPoint.gen_math.Loops05;

import nsk.share.TestFailure;

class Loops05
public class Loops05
{

static final int N = 100;
Expand Down
Expand Up @@ -29,15 +29,14 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Loops06.Loops06
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Loops06.Loops06
* @run main/othervm jit.FloatingPoint.gen_math.Loops06.Loops06
*/

package jit.FloatingPoint.gen_math.Loops06;

import nsk.share.TestFailure;

class Loops06
public class Loops06
{

static final int N = 20;
Expand Down
Expand Up @@ -29,8 +29,7 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Loops07.Loops07
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Loops07.Loops07
* @run main/othervm jit.FloatingPoint.gen_math.Loops07.Loops07
*/

package jit.FloatingPoint.gen_math.Loops07;
Expand All @@ -41,7 +40,7 @@

import nsk.share.TestFailure;

class Loops07
public class Loops07
{

public static void main (String args[])
Expand Down
Expand Up @@ -29,8 +29,7 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Matrix_3d.Matrix_3d
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Matrix_3d.Matrix_3d
* @run main/othervm jit.FloatingPoint.gen_math.Matrix_3d.Matrix_3d
*/

package jit.FloatingPoint.gen_math.Matrix_3d;
Expand All @@ -40,7 +39,7 @@

import nsk.share.TestFailure;

class Matrix_3d
public class Matrix_3d
{

public static void main (String args[])
Expand Down
Expand Up @@ -29,8 +29,7 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.FloatingPoint.gen_math.Summ.Summ
* @run driver ExecDriver --java jit.FloatingPoint.gen_math.Summ.Summ
* @run main/othervm jit.FloatingPoint.gen_math.Summ.Summ
*/

package jit.FloatingPoint.gen_math.Summ;
Expand All @@ -39,7 +38,7 @@

import nsk.share.TestFailure;

class Summ
public class Summ
{
public static void main (String args[])
{
Expand Down
5 changes: 2 additions & 3 deletions test/hotspot/jtreg/vmTestbase/jit/Robert/Robert.java
Expand Up @@ -29,16 +29,15 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.Robert.Robert
* @run driver ExecDriver --java jit.Robert.Robert
* @run main/othervm jit.Robert.Robert
*/

package jit.Robert;

import java.io.*;
import nsk.share.TestFailure;

class Robert
public class Robert
{
Robert()
throws Exception
Expand Down
5 changes: 2 additions & 3 deletions test/hotspot/jtreg/vmTestbase/jit/Sleeper/Sleeper.java
Expand Up @@ -29,15 +29,14 @@
*
* @library /vmTestbase
* /test/lib
* @build jit.Sleeper.Sleeper
* @run driver ExecDriver --java jit.Sleeper.Sleeper
* @run main/othervm jit.Sleeper.Sleeper
*/

package jit.Sleeper;

import nsk.share.TestFailure;

class Sleeper {
public class Sleeper {
public static void main(String args[] ) {
System.out.println ("1");
try { Thread.sleep(1000); } catch (InterruptedException e) {}
Expand Down