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

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