summaryrefslogtreecommitdiffstats
path: root/test/theap.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-11-25 14:58:22 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-11-25 14:58:22 (GMT)
commit4354606d1e86a514958f20b21163c19c30dc26f5 (patch)
treedb93fa4fa072524becbc7a8e6221a6c64fdbfa3f /test/theap.c
parent49ca76e303a15bfb6a46d7b68086ca974044c5c1 (diff)
downloadhdf5-4354606d1e86a514958f20b21163c19c30dc26f5.zip
hdf5-4354606d1e86a514958f20b21163c19c30dc26f5.tar.gz
hdf5-4354606d1e86a514958f20b21163c19c30dc26f5.tar.bz2
[svn-r949] Changes since 19981124
---------------------- ./src/H5T.c Fixed a typo in the registration of the `unsigned char' to `unsigned long long' type conversion that caused it to not be registered, falling back to software whenever that conversion path was taken. ./MANIFEST ./test/Makefile.in ./test/testhdf5.c ./test/testhdf5.h ./test/theap.c [REMOVED] ./test/lheap.c [NEW] ./test/tohdr.c [REMOVED] ./test/ohdr.c [NEW] ./test/tstab.c [REMOVED] ./test/stab.c [NEW] Removed the `t' from the front of these names and made each test a stand-alone program following the format of most of the other tests. ./test/big.c Uses libh5test.a but always sets the low-level driver to 1GB file family. The `#if' near the top to set the data space to 8GB has been simplified now that `long_long' is always defined and the error message is improved when `long_long' isn't wide enough. Cleanup code was added to the error handling. ./test/gheap.c ./test/istore.c Uses libh5test.a. Added error cleanup code. ./test/dtypes.c ./test/h5test.c Added 68 new tests that check hardware and software conversions between `long long' and `unsigned long long' and the other integer types. The tests only run on machines where sizeof(long_long)!=sizeof(long). We test a total of 180 different integer conversions, half in hardware and half in software. Cut down the number of times each test is run from 5 to 1 so it doesn't take so long. If you want to run more times there's a constant that can be changed at the top of the file. ./test/extend.c Removed unused variable. ./test/h5test.c ./test/h5test.h ./test/external.c ./test/fillval.c The h5_cleanup() returns true/false so it can be used in an `if' statement to clean up additional files. ./doc/html/Environment.html Indented. Added HDF5_PREFIX and HDF5_DRIVER descriptions. ./src/H5P.c Changed the trace type for the second argument from `Iu' to `x' since it's an output parameter. ./INSTALL Added a warning that the GNU zlib that comes with the latest version of HDF4 is too old to use with HDF5 and must be renamed so configure doesn't see it when `--enable-hdf4' is used.
Diffstat (limited to 'test/theap.c')
-rw-r--r--test/theap.c113
1 files changed, 0 insertions, 113 deletions
diff --git a/test/theap.c b/test/theap.c
deleted file mode 100644
index c4ebe0a..0000000
--- a/test/theap.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/*-------------------------------------------------------------------------
- * Copyright (C) 1997 National Center for Supercomputing Applications.
- * All rights reserved.
- *
- *-------------------------------------------------------------------------
- *
- * Created: theap.c
- * Jul 17 1997
- * Robb Matzke <robb@maya.nuance.com>
- *
- * Purpose:
- *
- * Modifications:
- *
- *-------------------------------------------------------------------------
- */
-#include <testhdf5.h>
-
-#include <H5private.h>
-#include <H5Iprivate.h>
-#include <H5ACprivate.h>
-#include <H5Pprivate.h>
-#include <H5Fprivate.h>
-#include <H5HLprivate.h>
-
-#define FILE "theap.h5"
-#define NOBJS 40
-
-/*-------------------------------------------------------------------------
- * Function: test_heap
- *
- * Purpose: Test name and object heaps.
- *
- * Return: void
- *
- * Programmer: Robb Matzke
- * robb@maya.nuance.com
- * Jul 17 1997
- *
- * Modifications:
- *
- *-------------------------------------------------------------------------
- */
-void
-test_heap(void)
-{
- int i, j;
- hid_t fid;
- H5F_t *f;
- haddr_t heap_addr;
- char buf[NOBJS + 8];
- const char *s;
- size_t obj[NOBJS];
- herr_t status;
-
- MESSAGE(5, ("Testing Heaps\n"));
-
- /* Create the file */
- fid = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- CHECK(fid, FAIL, "H5Fcreate");
- f = H5I_object(fid);
- CHECK(f, NULL, "H5I_object");
-
- /* Create a new heap */
- status = H5HL_create(f, 0, &heap_addr /*out */ );
- CHECK_I(status, "H5HL_create");
-
- /* Add stuff to the heap */
- for (i = 0; i < NOBJS; i++) {
- sprintf(buf, "%03d-", i);
- for (j = 4; j < i; j++)
- buf[j] = '0' + j % 10;
- if (j > 4)
- buf[j] = '\0';
-
- obj[i] = H5HL_insert(f, &heap_addr, strlen(buf) + 1, buf);
- assert ((size_t)(-1)!=obj[i]);
- }
-
- /* Flush the cache and invalidate everything */
- H5AC_flush(f, NULL, 0, TRUE);
-
- /* Read the objects back out */
- for (i = 0; i < NOBJS; i++) {
- s = H5HL_peek(f, &heap_addr, obj[i]);
- MESSAGE(8, ("object is `%s'\n", s));
- }
-
- /* Close the file */
- H5Fclose(fid);
-}
-
-
-/*-------------------------------------------------------------------------
- * Function: cleanup_heap
- *
- * Purpose: Cleanup temporary test files
- *
- * Return: none
- *
- * Programmer: Albert Cheng
- * July 2, 1998
- *
- * Modifications:
- *
- *-------------------------------------------------------------------------
- */
-void
-cleanup_heap(void)
-{
- remove(FILE);
-}
-