summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-03-16 16:36:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-03-16 16:36:48 (GMT)
commit0647698684f004c518d2807105db5fcaf2c22e7c (patch)
treedc6a7dc3d3767c18d089548ce9f05a994660f979 /java
parent4573feb2a9765eba5976775f2c43cbe58e0059a0 (diff)
downloadhdf5-0647698684f004c518d2807105db5fcaf2c22e7c.zip
hdf5-0647698684f004c518d2807105db5fcaf2c22e7c.tar.gz
hdf5-0647698684f004c518d2807105db5fcaf2c22e7c.tar.bz2
[svn-r29446] Check if H5Pexist return value is >0 rather then ==1
Diffstat (limited to 'java')
-rw-r--r--java/test/TestH5Plist.java14
1 files 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 {