[svn-r29446] Check if H5Pexist return value is >0 rather then ==1

This commit is contained in:
Allen Byrne 2016-03-16 11:36:48 -05:00
parent 4573feb2a9
commit 0647698684

View File

@ -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 {