From eeb6e2f01fdfade771d2b0141c0a8098081ce947 Mon Sep 17 00:00:00 2001 From: Thomas Stuefe Date: Sun, 18 Dec 2016 10:57:49 +0100 Subject: [PATCH] 8171225: [aix] Fix gtests compile error on AIX 7.1 with xlC 12 Help xlC understand gtest asserts Reviewed-by: erikj, dholmes, simonis --- hotspot/test/native/utilities/test_linkedlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/test/native/utilities/test_linkedlist.cpp b/hotspot/test/native/utilities/test_linkedlist.cpp index 34aa774ebdc..471c4421f93 100644 --- a/hotspot/test/native/utilities/test_linkedlist.cpp +++ b/hotspot/test/native/utilities/test_linkedlist.cpp @@ -74,7 +74,7 @@ TEST(LinkedList, simple) { ASSERT_EQ(six.value(), i->value()) << "Should be 6"; i = ll.find(three); - ASSERT_EQ(NULL, i) << "Not in the list"; + ASSERT_TRUE(i == NULL) << "Not in the list"; LinkedListNode* node = ll.find_node(six); ASSERT_TRUE(node != NULL) << "6 is in the list";