diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2008-02-04 22:22:07 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2008-02-04 22:22:07 (GMT) |
commit | bfc5f45bea80c46edbb5b95b05d256f4123d8ad5 (patch) | |
tree | fdb3cb3d27fb5a7bd87bf89a150db3f802c4109a | |
parent | e04d793cc6477f7c8dd1702e0a53da86a0b35d66 (diff) | |
download | hdf5-bfc5f45bea80c46edbb5b95b05d256f4123d8ad5.zip hdf5-bfc5f45bea80c46edbb5b95b05d256f4123d8ad5.tar.gz hdf5-bfc5f45bea80c46edbb5b95b05d256f4123d8ad5.tar.bz2 |
[svn-r14493] Print out the seed for HDsrandom. In case that there's a failure in the test, it may be easier
to reproduce the problem.
Tested on kagiso. Simple change.
-rw-r--r-- | test/dtypes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/dtypes.c b/test/dtypes.c index 6b199e4..e7ac9c5 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -6165,10 +6165,12 @@ int main(void) { unsigned long nerrors = 0; + unsigned long rand_seed; hid_t fapl=-1; /* Set the random # seed */ - HDsrandom((unsigned long)HDtime(NULL)); + rand_seed = (unsigned long)HDtime(NULL); + HDsrandom(rand_seed); reset_hdf5(); fapl = h5_fileaccess(); @@ -6252,6 +6254,7 @@ main(void) if (nerrors) { printf("***** %lu FAILURE%s! *****\n", nerrors, 1==nerrors?"":"S"); + printf(" seed for random is %29lu\n", rand_seed); HDexit(1); } printf("All data type tests passed.\n"); |