[svn-r1507] Uncommented VL datatypes in compound datatypes test, since it's working now.

Some other memory leaks in the tests fixed.
This commit is contained in:
Quincey Koziol 1999-07-17 19:00:22 -05:00
parent 9b50a916c5
commit def04e3564
4 changed files with 6 additions and 4 deletions

View File

@ -79,6 +79,7 @@ is_sparse(void)
if ((fd=open("x.h5", O_RDWR|O_TRUNC|O_CREAT, 0666))<0) return 0;
if (lseek(fd, 1024*1024, SEEK_SET)!=1024*1024) return 0;
if (5!=write(fd, "hello", 5)) return 0;
if (close(fd)<0) return 0;
if (stat("x.h5", &sb)<0) return 0;
if (unlink("x.h5")<0) return 0;
#ifdef HAVE_STAT_ST_BLOCKS

View File

@ -168,7 +168,7 @@ test_simple_io(hid_t file)
/* Initialize the dataset */
for (i = n = 0; i < 100; i++) {
for (j = 0; j < 100; j++) {
for (j = 0; j < 200; j++) {
points[i][j] = n++;
}
}

View File

@ -367,6 +367,8 @@ main(void)
nerrors += test_tr1(file);
nerrors += test_tr2(file);
H5Fclose(file);
if (nerrors) goto error;
puts("All enum tests passed.");
h5_cleanup(fapl);

View File

@ -309,7 +309,6 @@ test_vltypes_vlen_compound(void)
ret=H5Dvlen_reclaim(tid1,sid1,xfer_pid,rdata);
CHECK(ret, FAIL, "H5Dvlen_reclaim");
/* Make certain the VL memory has been freed */
VERIFY(mem_used,0,"H5Dvlen_reclaim");
@ -463,7 +462,7 @@ test_vltypes_compound_vlen_atomic(void)
VERIFY(mem_used,0,"H5Dvlen_reclaim");
/* Reclaim the write VL data */
ret=H5Dvlen_reclaim(tid1,sid1,H5P_DEFAULT,wdata);
ret=H5Dvlen_reclaim(tid2,sid1,H5P_DEFAULT,wdata);
CHECK(ret, FAIL, "H5Dvlen_reclaim");
/* Close Dataset */
@ -600,7 +599,7 @@ test_vltypes_vlen_vlen_atomic(void)
VERIFY(mem_used,0,"H5Dvlen_reclaim");
/* Reclaim the write VL data */
ret=H5Dvlen_reclaim(tid1,sid1,H5P_DEFAULT,wdata);
ret=H5Dvlen_reclaim(tid2,sid1,H5P_DEFAULT,wdata);
CHECK(ret, FAIL, "H5Dvlen_reclaim");
/* Close Dataset */