~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/resolve_stack_dump.cc

  • Committer: Brian Aker
  • Date: 2009-03-05 07:55:26 UTC
  • mfrom: (910.1.5 drizzle)
  • Revision ID: brian@tangent.org-20090305075526-ua34bjproq6oxujx
Merge of Brian (test extensions, dead code killing)

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
  fp_out = stdout;
154
154
  fp_dump = stdin;
155
155
 
156
 
  if (dump_fname && !(fp_dump = my_fopen(dump_fname, O_RDONLY, MYF(MY_WME))))
 
156
  if (dump_fname && !(fp_dump= fopen(dump_fname, "r")))
157
157
      die("Could not open %s", dump_fname);
158
158
  /* if name not given, assume stdin*/
159
159
 
160
160
  if (!sym_fname)
161
161
    die("Please run nm --numeric-sort on drizzled binary that produced stack \
162
162
trace dump and specify the path to it with -s or --symbols-file");
163
 
  if (!(fp_sym = my_fopen(sym_fname, O_RDONLY, MYF(MY_WME))))
 
163
  if (!(fp_sym= fopen(sym_fname, "r")))
164
164
    die("Could not open %s", sym_fname);
165
165
 
166
166
}