changeset 42900:ff634f19e82c

8171225: [aix] Fix gtests compile error on AIX 7.1 with xlC 12 Summary: Help xlC understand gtest asserts Reviewed-by: erikj, dholmes, simonis
author stuefe
date Sun, 18 Dec 2016 10:57:49 +0100
parents af1346a135ce
children 3da41dfcadf8
files hotspot/test/native/utilities/test_linkedlist.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/test/native/utilities/test_linkedlist.cpp	Tue Dec 20 17:35:20 2016 +0300
+++ b/hotspot/test/native/utilities/test_linkedlist.cpp	Sun Dec 18 10:57:49 2016 +0100
@@ -74,7 +74,7 @@
   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<Integer>* node = ll.find_node(six);
   ASSERT_TRUE(node != NULL) << "6 is in the list";