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

9d8306
From 9acaea3944d8f6d64040302b523c8160fd15bcd7 Mon Sep 17 00:00:00 2001
9d8306
From: Jakub Filak <jfilak@redhat.com>
9d8306
Date: Wed, 29 Jul 2015 18:49:58 +0200
9d8306
Subject: [PATCH] Disable ClassNotFoundException test again
9d8306
9d8306
java-1.8.0-openjdk started catching the ClassNotFoundException and
9d8306
has the same behaviour as java-1.7.0-openjdk now.
9d8306
---
9d8306
 test/CMakeLists.txt | 32 +++++++++++++++++---------------
9d8306
 1 file changed, 17 insertions(+), 15 deletions(-)
9d8306
9d8306
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
9d8306
index 291e9a1..6c2a3f8 100644
9d8306
--- a/test/CMakeLists.txt
9d8306
+++ b/test/CMakeLists.txt
9d8306
@@ -187,23 +187,25 @@ _add_test_target(
9d8306
 _add_test(run_bad_class 2)
9d8306
 
9d8306
 # Disable for JVM-1.7, because it catches the ClassNotFoundException in a native method and exits gracefully
9d8306
-_add_test_target(
9d8306
-    run_missing_class_test
9d8306
-    MissingClassTest
9d8306
-    PRE rm -f MissingClassTest.class
9d8306
-    DEPENDS ${TEST_JAVA_TARGETS} ${JAR_TEST_PATH}
9d8306
-    AGENT_OPTIONS executable=threadclass
9d8306
-)
9d8306
-_add_test(run_missing_class_test 2)
9d8306
-
9d8306
-# Disable for JVM-1.8, because missing class causes an uncaught exception
9d8306
-#add_custom_target(
9d8306
+# 2015-07-29: Disable for JVM-1.8, because java started catching the exception in a native method again
9d8306
+#_add_test_target(
9d8306
 #    run_missing_class_test
9d8306
-#    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
9d8306
-#    DEPENDS AbrtChecker ${TEST_JAVA_TARGETS}
9d8306
-#    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
9d8306
+#    MissingClassTest
9d8306
+#    PRE rm -f MissingClassTest.class
9d8306
+#    DEPENDS ${TEST_JAVA_TARGETS} ${JAR_TEST_PATH}
9d8306
+#    AGENT_OPTIONS executable=threadclass
9d8306
 #)
9d8306
-#add_test(test_run_missing_class_test make run_missing_class_test)
9d8306
+#_add_test(run_missing_class_test 2)
9d8306
+
9d8306
+# Disable for JVM-1.8, because missing class causes an uncaught exception
9d8306
+# 2015-07-29: Enable for all versions, because this error has stopped causing an uncaught exception with JVM-1.8
9d8306
+add_custom_target(
9d8306
+    run_missing_class_test
9d8306
+    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
9d8306
+    DEPENDS AbrtChecker ${TEST_JAVA_TARGETS}
9d8306
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
9d8306
+)
9d8306
+add_test(test_run_missing_class_test make run_missing_class_test)
9d8306
 
9d8306
 _add_test_target(
9d8306
     run_try_finally
9d8306
-- 
9d8306
2.4.6
9d8306