~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_test.cc

  • Committer: Monty Taylor
  • Date: 2010-04-20 07:21:29 UTC
  • mto: (1497.3.5 various-build-fixes)
  • mto: This revision was merged to the branch mainline in revision 1509.
  • Revision ID: mordred@inaugust.com-20100420072129-ujxlgh2atkv4we9p
Hardcode an exclusion for port 8000. It comes up surprisingly often.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <fcntl.h>
23
23
#include <unistd.h>
24
24
#include <cstdlib>
25
 
#include <memory>
 
25
#include "drizzled/option.h"
26
26
 
27
27
#if TIME_WITH_SYS_TIME
28
28
# include <sys/time.h>
35
35
# endif
36
36
#endif
37
37
 
38
 
#include <boost/scoped_ptr.hpp>
39
 
 
40
38
#define COMMENT_STRING "Your bases"
41
39
#define FRM_STRING "My bases"
42
40
#define TEST_FILENAME "test.az"
114
112
  int error;
115
113
  unsigned int x;
116
114
  int written_rows= 0;
117
 
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
118
 
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
119
 
  azio_stream &writer_handle= *writer_handle_ap.get();
120
 
  azio_stream &reader_handle= *reader_handle_ap.get();
 
115
  azio_stream writer_handle, reader_handle;
121
116
 
122
117
  memcpy(test_string, TEST_STRING_INIT, 1024);
123
118
 
291
286
int size_test(uint64_t length, uint64_t rows_to_test_for,
292
287
              az_method method)
293
288
{
294
 
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
295
 
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
296
 
  azio_stream &writer_handle= *writer_handle_ap.get();
297
 
  azio_stream &reader_handle= *reader_handle_ap.get();
 
289
  azio_stream writer_handle, reader_handle;
298
290
  uint64_t write_length;
299
291
  uint64_t read_length;
300
292
  uint64_t count;