~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/archive_test.c

  • Committer: Brian Aker
  • Date: 2008-10-10 07:00:22 UTC
  • mfrom: (492.1.15 codestyle)
  • Revision ID: brian@tangent.org-20081010070022-aud6tq3a82emaujj
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 
118
118
  unlink(TEST_FILENAME);
119
119
 
120
 
  if (!(ret= azopen(&writer_handle, TEST_FILENAME, O_CREAT|O_RDWR|O_BINARY,
 
120
  if (!(ret= azopen(&writer_handle, TEST_FILENAME, O_CREAT|O_RDWR,
121
121
                    method)))
122
122
  {
123
123
    printf("Could not create test file\n");
137
137
                strlen(FRM_STRING)));
138
138
 
139
139
 
140
 
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY|O_BINARY,
 
140
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY,
141
141
                    method)))
142
142
  {
143
143
    printf("Could not open test file\n");
184
184
 
185
185
  azclose(&reader_handle);
186
186
 
187
 
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY|O_BINARY,
 
187
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY,
188
188
                    method)))
189
189
  {
190
190
    printf("Could not open test file\n");
239
239
    assert(!memcmp(reader_handle.row_ptr, test_string, ret));
240
240
  }
241
241
 
242
 
  if (!(ret= azopen(&writer_handle, TEST_FILENAME, O_RDWR|O_BINARY, method)))
 
242
  if (!(ret= azopen(&writer_handle, TEST_FILENAME, O_RDWR, method)))
243
243
  {
244
244
    printf("Could not open file (%s) for appending\n", TEST_FILENAME);
245
245
    return 0;
294
294
  int x;
295
295
 
296
296
  if (!(ret= azopen(&writer_handle, TEST_FILENAME, 
297
 
                    O_CREAT|O_RDWR|O_TRUNC|O_BINARY,
 
297
                    O_CREAT|O_RDWR|O_TRUNC,
298
298
                    method)))
299
299
  {
300
300
    printf("Could not create test file\n");
319
319
  assert(write_length == count * BUFFER_LEN); /* Number of rows time BUFFER_LEN */
320
320
  azflush(&writer_handle,  Z_SYNC_FLUSH);
321
321
 
322
 
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY|O_BINARY,
 
322
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY,
323
323
                    method)))
324
324
  {
325
325
    printf("Could not open test file\n");