summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-11-17 19:11:54 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-11-17 19:11:54 (GMT)
commit5660250f25e8e4cb8f05a838d8d2a6f8466ef55c (patch)
tree2b49489a5830563efa02687a552a76f27ab393e2
parenteec82a42194221c209868f124604dde9e2ec66ea (diff)
downloadhdf5-5660250f25e8e4cb8f05a838d8d2a6f8466ef55c.zip
hdf5-5660250f25e8e4cb8f05a838d8d2a6f8466ef55c.tar.gz
hdf5-5660250f25e8e4cb8f05a838d8d2a6f8466ef55c.tar.bz2
[svn-r12934] Description:
Added return value to the main function to fix daily tests problem on sol that I cannot reproduce. Platforms tested: sol, heping
-rw-r--r--test/refreg_name.c27
1 files changed, 20 insertions, 7 deletions
diff --git a/test/refreg_name.c b/test/refreg_name.c
index ac41857..6df93b5 100644
--- a/test/refreg_name.c
+++ b/test/refreg_name.c
@@ -115,8 +115,10 @@ static int basic_test(void)
TESTING("H5Rget_name to get name from region reference (hyperslab)");
name_size1 = H5Rget_name(dsetr_id, H5R_DATASET_REGION, &ref_out[0], (char*)buf1, 10);
-/* if(!((HDstrcmp(buf1, "/MATRIX") == 0) && (name_size1 == 8))) TEST_ERROR
- PASSED()*/
+/*
+ if(!((HDstrcmp(buf1, "/MATRIX") == 0) && (name_size1 == 8))) TEST_ERROR
+ PASSED()
+*/
SKIPPED()
/* Get name of the dataset the first region reference points using H5Iget_name */
@@ -135,9 +137,11 @@ static int basic_test(void)
TESTING("H5Rget_name to get name from region reference (pnt selec)");
name_size1 = H5Rget_name(dsetr_id, H5R_DATASET_REGION, &ref_out[1], (char*)buf1, 10);
-/* if(!((HDstrcmp(buf1, "/MATRIX") == 0) && (name_size1 == 8))) TEST_ERROR
- PASSED() */
- SKIPPED()
+/*
+ if(!((HDstrcmp(buf1, "/MATRIX") == 0) && (name_size1 == 8))) TEST_ERROR
+ PASSED()
+ */
+ SKIPPED()
/* Get name of the dataset the first region reference points using H5Iget_name */
@@ -161,9 +165,18 @@ error:
return -1;
}
-void main(void)
+int main(void)
{
- basic_test();
+ int nerrors=0;
+ nerrors += basic_test()<0 ?1:0;
+
+ if (nerrors){
+ printf("***** %d Get name from region reference TEST%s FAILED! *****\n",
+ nerrors, nerrors > 1 ? "S" : "");
+ return 1;
+ }
+ printf("Get name from region reference tests passed\n");
+ return 0;
}