diff test/compiler/whitebox/MakeMethodNotCompilableTest.java @ 14726:92aa6797d639

Backed out merge changeset: b51e29501f30 Backed out merge revision to its first parent (8f483e200405)
author Doug Simon <doug.simon@oracle.com>
date Mon, 24 Mar 2014 21:30:43 +0100
parents 2dfa56e10640
children
line wrap: on
line diff
--- a/test/compiler/whitebox/MakeMethodNotCompilableTest.java	Fri Mar 21 16:36:59 2014 -0700
+++ b/test/compiler/whitebox/MakeMethodNotCompilableTest.java	Mon Mar 24 21:30:43 2014 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -53,8 +53,11 @@
      */
     @Override
     protected void test() throws Exception {
-        if (skipXcompOSR()) {
-            return;
+        if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith(
+                "compiled ")) {
+          System.err.printf("Warning: %s is not applicable in %s%n",
+                testCase.name(), CompilerWhiteBoxTest.MODE);
+          return;
         }
         checkNotCompiled();
         if (!isCompilable()) {