test/jtreg-ext/requires/VMProps.java
changeset 43394 68ed4de0f9c8
parent 43389 53ff01a9206a
child 45823 f3cf2ee05985
child 46225 f99654379e9c
--- a/test/jtreg-ext/requires/VMProps.java	Fri Jan 13 18:26:33 2017 +0100
+++ b/test/jtreg-ext/requires/VMProps.java	Tue Jan 17 21:39:22 2017 -0800
@@ -64,6 +64,7 @@
         map.put("vm.simpleArch", vmArch());
         map.put("vm.debug", vmDebug());
         map.put("vm.jvmci", vmJvmci());
+        map.put("vm.emulatedClient", vmEmulatedClient());
         map.put("vm.cpu.features", cpuFeatures());
         vmGC(map); // vm.gc.X = true/false
 
@@ -169,6 +170,17 @@
     }
 
     /**
+     * @return true if VM runs in emulated-client mode and false otherwise.
+     */
+    protected String vmEmulatedClient() {
+        String vmInfo = System.getProperty("java.vm.info");
+        if (vmInfo == null) {
+            return "false";
+        }
+        return "" + vmInfo.contains(" emulated-client");
+    }
+
+    /**
      * @return supported CPU features
      */
     protected String cpuFeatures() {