From 395da6090ffa53b971eba805c98abcc404957300 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Tue, 14 Mar 2000 14:30:42 -0500 Subject: [svn-r2034] Switch testing web server to paz.ncsa.uiuc.edu for gass_read; still comment out gass_write and gass_append because they depend on web server. --- test/gass_append.c | 2 +- test/gass_read.c | 2 +- test/gass_write.c | 13 +++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/test/gass_append.c b/test/gass_append.c index 96ac047..30ad6b0 100644 --- a/test/gass_append.c +++ b/test/gass_append.c @@ -151,7 +151,7 @@ int main (void) #else int main(void) { - printf("Test skipped because GASS driver does not support append yet\n"); + printf("Test skipped because append depends on web server!\n"); return 0; } #endif diff --git a/test/gass_read.c b/test/gass_read.c index fb9ee4b..7b811c5 100644 --- a/test/gass_read.c +++ b/test/gass_read.c @@ -27,7 +27,7 @@ int main(void) #else /*#define URL "ftp://gass:gass12@which/tmp/gass/junk.w"*/ -#define URL "http://hdf/GLOBUS/a.h5" +#define URL "http://paz.ncsa.uiuc.edu:8080/test/a.h5" /* #define DATASETNAME "Int1Array" */ #define NX_SUB 3 /* hyperslab dimensions */ diff --git a/test/gass_write.c b/test/gass_write.c index 52d49f2..a4cb44f 100644 --- a/test/gass_write.c +++ b/test/gass_write.c @@ -27,7 +27,8 @@ int main(void) #ifdef hide -#define URL "ftp://gass:gass12@which/tmp/gass/junk.w" +/*#define URL "ftp://gass:gass12@which/tmp/gass/junk.w"*/ +#define URL "http://paz.ncsa.uiuc.edu:8080/test/put/test/b.h5" #define DATASETNAME "IntArray" #define NX 5 /* dataset dimensions */ @@ -83,12 +84,13 @@ int main (void) * default file creation properties, and gass file * access properties. */ + /* // file = H5Fcreate(URL, H5F_ACC_TRUNC, H5P_DEFAULT, fapl); // Works. Truncates existing files. // file = H5Fcreate(URL, H5F_ACC_EXCL, H5P_DEFAULT, fapl); // Works. Croaks if existing file, else creates. // Any other flag has no effect as long as one and exactly one of TRUNC/ - // EXCL is there + // EXCL is there */ /* printf ("I'm here just before H5Fcreate. \n");*/ file = H5Fcreate(URL, H5F_ACC_TRUNC, H5P_DEFAULT, fapl); if (file < 0) { @@ -156,12 +158,11 @@ int main (void) return 0; } - -#else +#else int main(void) { - printf("Test skipped because GASS driver does not support writing yet\n"); + printf("Test skipped because writing depends on web server!\n"); return 0; } -#endif +#endif #endif -- cgit v0.12