151
151
 
        }
152
152
 
153
153
 
        if (NULL == (s = (const char *)H5HL_offset_into(heap, obj[i]))) {
154
154
 
            H5_FAILED();
155
155
 
            H5Eprint2(H5E_DEFAULT, stdout);
156
156
 
            goto error;
157
157
 
        }
158
158
 
159
159
 
        if (strcmp(s, buf)) {
160
160
 
            H5_FAILED();
161
 
-
            printf("    i=%d, heap offset=%lu\n", i, (unsigned long)(obj[i]));
162
 
-
            printf("    got: \"%s\"\n", s);
163
 
-
            printf("    ans: \"%s\"\n", buf);
 
161
+
            HDprintf("    i=%d, heap offset=%lu\n", i, (unsigned long)(obj[i]));
 
162
+
            HDprintf("    got: \"%s\"\n", s);
 
163
+
            HDprintf("    ans: \"%s\"\n", buf);
164
164
 
            goto error;
165
165
 
        }
166
166
 
167
167
 
        if(FAIL == H5HL_unprotect(heap)) {
168
168
 
            H5_FAILED();
169
169
 
            H5Eprint2(H5E_DEFAULT, stdout);
170
170
 
            goto error;
171
171
 
        }
172
172
 
    }
173
173
 
Show more
184
184
 
        if(file >= 0){
185
185
 
            if((dset = H5Dopen2(file, "/Dataset1", H5P_DEFAULT)) < 0)
186
186
 
                TEST_ERROR
187
187
 
            if(H5Dclose(dset) < 0)
188
188
 
                TEST_ERROR
189
189
 
            if(H5Fclose(file) < 0)
190
190
 
                TEST_ERROR
191
191
 
        }
192
192
 
        else {
193
193
 
            H5_FAILED();
194
 
-
            printf("***cannot open the pre-created non-default sizes test file (%s)\n",
 
194
+
            HDprintf("***cannot open the pre-created non-default sizes test file (%s)\n",
195
195
 
                testfile);
196
196
 
            goto error;
197
197
 
        } /* end else */
198
198
 
    }
199
199
 
    PASSED();
200
200
 
201
201
 
    /* Verify symbol table messages are cached */
202
202
 
    if(h5_verify_cached_stabs(FILENAME, fapl) < 0) TEST_ERROR
203
203
 
204
 
-
    puts("All local heap tests passed.");
 
204
+
    HDputs("All local heap tests passed.");
205
205
 
    h5_cleanup(FILENAME, fapl);
206
206
 
207
207
 
    return 0;
208
208
 
209
209
 
 error:
210
 
-
    puts("*** TESTS FAILED ***");
 
210
+
    HDputs("*** TESTS FAILED ***");
211
211
 
    H5E_BEGIN_TRY {
212
212
 
        H5Fclose(file);
213
213
 
    } H5E_END_TRY;
214
214
 
    return 1;
215
215
 
}
216
216