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

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