From 0647698684f004c518d2807105db5fcaf2c22e7c Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 16 Mar 2016 11:36:48 -0500 Subject: [svn-r29446] Check if H5Pexist return value is >0 rather then ==1 --- java/test/TestH5Plist.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/java/test/TestH5Plist.java b/java/test/TestH5Plist.java index c4dee01..e87909e 100644 --- a/java/test/TestH5Plist.java +++ b/java/test/TestH5Plist.java @@ -337,7 +337,7 @@ public class TestH5Plist { err.printStackTrace(); fail("H5Pexist plist_class_id: " + err); } - assertTrue("H5Pexist plist_class_id "+PROP1_NAME, status == 1); + assertTrue("H5Pexist plist_class_id "+PROP1_NAME, status > 0); // Check the size of the first property try { @@ -388,7 +388,7 @@ public class TestH5Plist { err.printStackTrace(); fail("H5Pexist plist_class_id: " + err); } - assertTrue("H5Pexist plist_class_id "+PROP2_NAME, status == 1); + assertTrue("H5Pexist plist_class_id "+PROP2_NAME, status > 0); // Check the size of the second property try { @@ -429,7 +429,7 @@ public class TestH5Plist { err.printStackTrace(); fail("H5Pexist plist_class_id: " + err); } - assertTrue("H5Pexist plist_class_id "+PROP3_NAME, status == 1); + assertTrue("H5Pexist plist_class_id "+PROP3_NAME, status > 0); // Check the size of the third property try { @@ -725,7 +725,7 @@ public class TestH5Plist { err.printStackTrace(); fail("H5Pexist plist_class_id: " + err); } - assertTrue("H5Pexist lid1 "+PROP1_NAME, status == 1); + assertTrue("H5Pexist lid1 "+PROP1_NAME, status > 0); try { status = H5.H5Pexist(lid1, PROP2_NAME); } @@ -733,7 +733,7 @@ public class TestH5Plist { err.printStackTrace(); fail("H5Pexist plist_class_id: " + err); } - assertTrue("H5Pexist lid1 "+PROP2_NAME, status == 1); + assertTrue("H5Pexist lid1 "+PROP2_NAME, status > 0); try { status = H5.H5Pexist(lid1, PROP3_NAME); } @@ -741,7 +741,7 @@ public class TestH5Plist { err.printStackTrace(); fail("H5Pexist plist_class_id: " + err); } - assertTrue("H5Pexist lid1 "+PROP3_NAME, status == 1); + assertTrue("H5Pexist lid1 "+PROP3_NAME, status > 0); try { status = H5.H5Pexist(lid1, PROP4_NAME); } @@ -749,7 +749,7 @@ public class TestH5Plist { err.printStackTrace(); fail("H5Pexist plist_class_id: " + err); } - assertTrue("H5Pexist lid1 "+PROP4_NAME, status == 1); + assertTrue("H5Pexist lid1 "+PROP4_NAME, status > 0); } finally { -- cgit v0.12