[svn-r14163] Description:

Make H5Arename() versioned and switch internal usage to use H5Arename2()

	Add regression test for H5Arename1()


Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        AIX/32 5.3 (copper) w/FORTRAN, w/parallel, in production mode
        Mac OS X/32 10.4.10 (amazon) in debug mode
This commit is contained in:
Quincey Koziol
2007-09-27 18:09:59 -05:00
parent c63f9b42ec
commit 5b1a07823f
6 changed files with 49 additions and 27 deletions

View File

@@ -277,11 +277,9 @@ void H5Object::removeAttr( const H5std_string& name ) const
//--------------------------------------------------------------------------
void H5Object::renameAttr(const char* oldname, const char* newname) const
{
herr_t ret_value = H5Arename(id, oldname, newname);
herr_t ret_value = H5Arename2(id, ".", oldname, newname, H5P_DEFAULT);
if (ret_value < 0)
{
throw AttributeIException(inMemFunc("renameAttr"), "H5Arename failed");
}
throw AttributeIException(inMemFunc("renameAttr"), "H5Arename2 failed");
}
//--------------------------------------------------------------------------