Source
if(H5Lcreate_external(filename2, "/A", fid, "ext_link", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the COPYING file, which can be found at the root of the source code *
* distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
* If you do not have access to either file, you may request a copy from *
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* Purpose: Tests hard, soft (symbolic) & external links.
*/
const char *FILENAME[] = {
"extlinks_env0", /* 0: main file */
"extlinks_env1", /* 1: target file */
TMPDIR "extlinks_env1", /* 2 */
NULL
};
static int external_link_env(hid_t fapl, hbool_t new_format);
•
/*-------------------------------------------------------------------------
* Function: external_link_env (moved from links.c)
*
* Purpose: Verify that the target file is found successfully in "tmp" directory
* via searching the pathnames set in the environment variable HDF5_EXT_PREFIX.
* 1. Target link: "extlinks_env1"
* 2. Main file: "extlinks_env0"
* 3. Target file is created in: "tmp/extlinks_env1"
* 4. The environment variable "HDF5_EXT_PREFIX" is set to ".:tmp"
*
* Return: Success: 0
* Failure: -1
*