mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
[svn-r13210] Purpose: Adding test
Description:
- Added a brief test for DSetCreatPropList::setSzip. More through tests
will be added later.
- Moved check_values from dsets.cpp into h5cpputil.cpp for sharing
with other tests.
Platforms tested
AIX 5.1 (copper)
SunOS 5.8 64-bit (sol)
Linux 2.6 (kagiso)
This commit is contained in:
@@ -104,6 +104,39 @@ void issue_fail_msg(const char* where, int line, const char* file_name,
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: check_values
|
||||
*
|
||||
* Purpose: Checks a read value against the written value. If they are
|
||||
* different, the function will print out a message and the
|
||||
* different values. This function is made to reuse the code
|
||||
* segment that is used in various places throughout
|
||||
* the test code. Where the C version of this code segment
|
||||
* "goto error," this function will return -1.
|
||||
*
|
||||
* Return: Success: 0
|
||||
*
|
||||
* Failure: -1
|
||||
*
|
||||
* Programmer: Binh-Minh Ribler (using C code segment for checking values)
|
||||
* Friday, February 6, 2001
|
||||
*
|
||||
* Modifications:
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
int check_values (hsize_t i, hsize_t j, int apoint, int acheck)
|
||||
{
|
||||
if (apoint != acheck)
|
||||
{
|
||||
cerr << " Read different values than written.\n" << endl;
|
||||
cerr << " At index " << (unsigned long)i << "," <<
|
||||
(unsigned long)j << endl;
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
} // check_values
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Function: InvalidActionException default constructor
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user