changeset 15906:234fa7498814

8158797: Test java/lang/management/MemoryMXBean/LowMemoryTest.java fails when GC is specified explicitly Summary: Fixed GC options for running the test Reviewed-by: ddmitriev, sspitsyn
author akulyakh
date Mon, 17 Oct 2016 15:46:28 +0300
parents 028d56ebb42a
children 569e17c52c7d
files test/java/lang/management/MemoryMXBean/LowMemoryTest.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/management/MemoryMXBean/LowMemoryTest.java	Thu Oct 13 09:02:13 2016 -0700
+++ b/test/java/lang/management/MemoryMXBean/LowMemoryTest.java	Mon Oct 17 15:46:28 2016 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2016, 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
@@ -34,6 +34,7 @@
  * @modules java.management
  * @build jdk.testlibrary.* LowMemoryTest MemoryUtil RunUtil
  * @run main/timeout=600 LowMemoryTest
+ * @requires vm.gc == "null"
  * @requires vm.opt.ExplicitGCInvokesConcurrent != "true"
  * @requires vm.opt.ExplicitGCInvokesConcurrentAndUnloadsClasses != "true"
  * @requires vm.opt.DisableExplicitGC != "true"