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

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