352
352
 
    } /* end else */
353
353
 
354
354
 
   /* Open the dataset with the unknown header message, but no extra flags */
355
355
 
    if((did = H5Dopen2(loc_bogus, "Dataset1", H5P_DEFAULT)) < 0)
356
356
 
        FAIL_STACK_ERROR
357
357
 
    if(H5Dclose(did) < 0)
358
358
 
        FAIL_STACK_ERROR
359
359
 
360
360
 
    PASSED();
361
361
 
 
362
+
    TESTING("object with unknown header message & 'shareable' flag set");
 
363
+
 
364
+
    /* Open the dataset with the unknown header message, adn "shareable" flag */
 
365
+
    if((did = H5Dopen2(loc_bogus, "Dataset5", H5P_DEFAULT)) < 0)
 
366
+
        FAIL_STACK_ERROR
 
367
+
    if(H5Dclose(did) < 0)
 
368
+
        FAIL_STACK_ERROR
 
369
+
 
370
+
    PASSED();
 
371
+
362
372
 
    TESTING("object in r/o file with unknown header message & 'fail if unknown and open for write' flag set");
363
373
 
364
374
 
    /* Open the dataset with the unknown header message, and "fail if unknown and open for write" flag */
365
375
 
    if((did = H5Dopen2(loc_bogus, "Dataset2", H5P_DEFAULT)) < 0)
366
376
 
        FAIL_STACK_ERROR
367
377
 
    if(H5Dclose(did) < 0)
368
378
 
        FAIL_STACK_ERROR
369
379
 
370
380
 
    PASSED();
371
381