summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/external.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/external.c b/test/external.c
index 52eb4af..6ccc8b0 100644
--- a/test/external.c
+++ b/test/external.c
@@ -582,7 +582,7 @@ test_2 (hid_t fapl)
hid_t hs_space; /*hyperslab data space */
hssize_t hs_start = 30; /*hyperslab starting offset */
hsize_t hs_count = 25; /*hyperslab size */
- int temparray[10] = {0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f};
+ int temparray[10] = {0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f};
TESTING("read external dataset");
@@ -594,7 +594,8 @@ test_2 (hid_t fapl)
sprintf (filename, "extern_%lua.raw", (unsigned long)i+1);
fd = HDopen (filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
assert (fd>=0);
-// n = lseek (fd, (off_t)(i*10), SEEK_SET);
+/* n = lseek (fd, (off_t)(i*10), SEEK_SET);
+*/
n = write(fd,temparray,i*10);
assert (n>=0 && (size_t)n==i*10);
n = write (fd, part, sizeof(part));
@@ -708,7 +709,7 @@ test_3 (hid_t fapl)
hssize_t hs_start=100; /*hyperslab starting offset */
hsize_t hs_count=100; /*hyperslab size */
char filename[1024]; /*file name */
- int temparray[10] = {0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f};
+ int temparray[10] = {0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f};
TESTING("write external dataset");