Blame SOURCES/0057-Disable-ClassNotFoundException-test-again.patch

f9a98e
From 778a1f7b717b84e696502f66539f41f73cbc235b Mon Sep 17 00:00:00 2001
f9a98e
From: Jakub Filak <jfilak@redhat.com>
f9a98e
Date: Wed, 29 Jul 2015 18:49:58 +0200
f9a98e
Subject: [PATCH] Disable ClassNotFoundException test again
f9a98e
f9a98e
java-1.8.0-openjdk started catching the ClassNotFoundException and
f9a98e
has the same behaviour as java-1.7.0-openjdk now.
f9a98e
---
f9a98e
 test/CMakeLists.txt | 32 +++++++++++++++++---------------
f9a98e
 1 file changed, 17 insertions(+), 15 deletions(-)
f9a98e
f9a98e
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
f9a98e
index 7c26330..c988b1b 100644
f9a98e
--- a/test/CMakeLists.txt
f9a98e
+++ b/test/CMakeLists.txt
f9a98e
@@ -182,23 +182,25 @@ _add_test_target(
f9a98e
 _add_test(run_bad_class 2)
f9a98e
 
f9a98e
 # Disable for JVM-1.7, because it catches the ClassNotFoundException in a native method and exits gracefully
f9a98e
-_add_test_target(
f9a98e
-    run_missing_class_test
f9a98e
-    MissingClassTest
f9a98e
-    PRE rm -f MissingClassTest.class
f9a98e
-    DEPENDS ${TEST_JAVA_TARGETS} ${JAR_TEST_PATH}
f9a98e
-    AGENT_OPTIONS executable=threadclass
f9a98e
-)
f9a98e
-_add_test(run_missing_class_test 2)
f9a98e
-
f9a98e
-# Disable for JVM-1.8, because missing class causes an uncaught exception
f9a98e
-#add_custom_target(
f9a98e
+# 2015-07-29: Disable for JVM-1.8, because java started catching the exception in a native method again
f9a98e
+#_add_test_target(
f9a98e
 #    run_missing_class_test
f9a98e
-#    COMMAND rm -f MissingClassTest.class && LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src ${Java_JAVA_EXECUTABLE} -agentlib:${AGENT_NAME}=output=run_missing_class.log MissingClassTest || test ! -e run_missing_class.log
f9a98e
-#    DEPENDS AbrtChecker ${TEST_JAVA_TARGETS}
f9a98e
-#    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
f9a98e
+#    MissingClassTest
f9a98e
+#    PRE rm -f MissingClassTest.class
f9a98e
+#    DEPENDS ${TEST_JAVA_TARGETS} ${JAR_TEST_PATH}
f9a98e
+#    AGENT_OPTIONS executable=threadclass
f9a98e
 #)
f9a98e
-#add_test(test_run_missing_class_test make run_missing_class_test)
f9a98e
+#_add_test(run_missing_class_test 2)
f9a98e
+
f9a98e
+# Disable for JVM-1.8, because missing class causes an uncaught exception
f9a98e
+# 2015-07-29: Enable for all versions, because this error has stopped causing an uncaught exception with JVM-1.8
f9a98e
+add_custom_target(
f9a98e
+    run_missing_class_test
f9a98e
+    COMMAND rm -f MissingClassTest.class && LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src ${Java_JAVA_EXECUTABLE} -agentlib:${AGENT_NAME}=output=run_missing_class.log MissingClassTest || test ! -e run_missing_class.log
f9a98e
+    DEPENDS AbrtChecker ${TEST_JAVA_TARGETS}
f9a98e
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
f9a98e
+)
f9a98e
+add_test(test_run_missing_class_test make run_missing_class_test)
f9a98e
 
f9a98e
 _add_test_target(
f9a98e
     run_try_finally
f9a98e
-- 
f9a98e
1.8.3.1
f9a98e