mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r29446] Check if H5Pexist return value is >0 rather then ==1
This commit is contained in:
parent
4573feb2a9
commit
0647698684
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user