Exemplo n.º 1
0
int main(void)
{
    /* identifier for the file */
    hid_t       fid;
    int         status = 0;

    /*-------------------------------------------------------------------------
     * Packet test: test each function of the packet table
     *-------------------------------------------------------------------------
     */

    /* create a file using default properties */
    fid=H5Fcreate(TEST_FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

    HDputs("Testing packet table");

    /* run tests */
    if ( test_packet_table(fid) < 0)
        status = 1;

    /* close */
    H5Fclose(fid);

    return status;
}
Exemplo n.º 2
0
int main(void)
{
    /* identifier for the file that is used in FL PT tests */
    hid_t       fid;
    int         status = 0;

/*-------------------------------------------------------------------------
 * Packet test: test each function of the packet table library
 *-------------------------------------------------------------------------
 */

 /* create a file using default properties */
 fid=H5Fcreate(TEST_FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

 HDputs("Testing packet table");

    /* Test packet table with fixed length */
    if (test_packet_table(fid) < 0)
        status = 1;

    /* Test packet table with variable length, using separate data file */
    if (test_packet_table_with_varlen() < 0)
        status = 1;

    /* Close the file */
    H5Fclose(fid);

    return status;
}