7102300: performance warnings cause results diff failure in Test6890943
authordrchase
Mon, 18 Feb 2013 15:08:39 -0800
changeset 15754 5301ce8e3a3d
parent 15753 f599307f4ca5
child 15755 c54cbfb4b37f
7102300: performance warnings cause results diff failure in Test6890943 Summary: Strip lines matching the performance warning from the output before diff. Reviewed-by: kvn
hotspot/test/compiler/5091921/Test6890943.sh
--- a/hotspot/test/compiler/5091921/Test6890943.sh	Mon Feb 18 14:29:16 2013 -0800
+++ b/hotspot/test/compiler/5091921/Test6890943.sh	Mon Feb 18 15:08:39 2013 -0800
@@ -1,6 +1,6 @@
 #!/bin/sh
 # 
-# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 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
@@ -52,7 +52,10 @@
 
 ${TESTJAVA}/bin/javac -d . Test6890943.java
 
-${TESTJAVA}/bin/java -XX:-PrintVMOptions ${TESTVMOPTS} Test6890943 < input6890943.txt > test.out 2>&1
+${TESTJAVA}/bin/java -XX:-PrintVMOptions -XX:+IgnoreUnrecognizedVMOptions ${TESTVMOPTS} Test6890943 < input6890943.txt > pretest.out 2>&1
+
+# This test sometimes tickles an unrelated performance warning that interferes with diff.
+grep -v 'warning: Performance bug: SystemDictionary' pretest.out > test.out
 
 diff output6890943.txt test.out