8186095: upgrade to jtreg 4.2 b08
authoriignatyev
Sun, 20 Aug 2017 20:36:11 -0700
changeset 46825 524c33aefd91
parent 46824 9e13f4eb7670
child 46834 9d1fdae875f6
child 46951 82996c9474f1
8186095: upgrade to jtreg 4.2 b08 Reviewed-by: rriggs, mchung, dholmes, iklam
hotspot/test/TEST.ROOT
hotspot/test/runtime/Metaspace/FragmentMetaspaceSimple.java
--- a/hotspot/test/TEST.ROOT	Fri Aug 18 18:39:37 2017 +0200
+++ b/hotspot/test/TEST.ROOT	Sun Aug 20 20:36:11 2017 -0700
@@ -54,8 +54,8 @@
     vm.aot \
     vm.cds
 
-# Tests using jtreg 4.2 b07 features
-requiredVersion=4.2 b07
+# Minimum jtreg version
+requiredVersion=4.2 b08
 
 # Path to libraries in the topmost test directory. This is needed so @library
 # does not need ../../ notation to reach them
--- a/hotspot/test/runtime/Metaspace/FragmentMetaspaceSimple.java	Fri Aug 18 18:39:37 2017 +0200
+++ b/hotspot/test/runtime/Metaspace/FragmentMetaspaceSimple.java	Sun Aug 20 20:36:11 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2017, 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
@@ -21,10 +21,12 @@
  * questions.
  */
 
+// ClassFileInstaller is needed to place test.Empty into well-known place
 /**
  * @test
- * @library classes
+ * @library /test/lib classes
  * @build test.Empty
+ * @run driver ClassFileInstaller test.Empty
  * @run main/othervm/timeout=200 FragmentMetaspaceSimple
  */
 
@@ -51,8 +53,8 @@
         long startTime = System.currentTimeMillis();
         ArrayList<ClassLoader> cls = new ArrayList<>();
         char sep = File.separatorChar;
-        String fileName = "classes" + sep + "test" + sep + "Empty.class";
-        File file = new File(System.getProperty("test.classes",".") + sep + fileName);
+        String fileName = "test" + sep + "Empty.class";
+        File file = new File(fileName);
         byte buff[] = read(file);
 
         int i = 0;