mtr_report.pl 17.1 KB
Newer Older
kent@mysql.com's avatar
kent@mysql.com committed
1
# -*- cperl -*-
2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Copyright (C) 2004-2006 MySQL AB
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
kent@mysql.com's avatar
kent@mysql.com committed
16 17 18 19 20 21

# This is a library file used by the Perl version of mysql-test-run,
# and is part of the translation of the Bourne shell script with the
# same name.

use strict;
22
use warnings;
kent@mysql.com's avatar
kent@mysql.com committed
23 24 25 26 27

sub mtr_report_test_name($);
sub mtr_report_test_passed($);
sub mtr_report_test_failed($);
sub mtr_report_test_skipped($);
28
sub mtr_report_test_not_skipped_though_disabled($);
kent@mysql.com's avatar
kent@mysql.com committed
29 30 31

sub mtr_report_stats ($);
sub mtr_print_line ();
kent@mysql.com's avatar
kent@mysql.com committed
32
sub mtr_print_thick_line ();
kent@mysql.com's avatar
kent@mysql.com committed
33 34 35 36
sub mtr_print_header ();
sub mtr_report (@);
sub mtr_warning (@);
sub mtr_error (@);
37
sub mtr_child_error (@);
kent@mysql.com's avatar
kent@mysql.com committed
38
sub mtr_debug (@);
39
sub mtr_verbose (@);
kent@mysql.com's avatar
kent@mysql.com committed
40

41 42 43
my $tot_real_time= 0;


kent@mysql.com's avatar
kent@mysql.com committed
44 45 46 47 48 49 50 51 52

##############################################################################
#
#  
#
##############################################################################

sub mtr_report_test_name ($) {
  my $tinfo= shift;
53
  my $tname= $tinfo->{name};
kent@mysql.com's avatar
kent@mysql.com committed
54

55 56 57 58 59
  $tname.= " '$tinfo->{combination}'"
    if defined $tinfo->{combination};

  _mtr_log($tname);
  printf "%-30s ", $tname;
kent@mysql.com's avatar
kent@mysql.com committed
60 61 62 63 64 65
}

sub mtr_report_test_skipped ($) {
  my $tinfo= shift;

  $tinfo->{'result'}= 'MTR_RES_SKIPPED';
kent@mysql.com's avatar
kent@mysql.com committed
66 67
  if ( $tinfo->{'disable'} )
  {
68
    mtr_report("[ disabled ]  $tinfo->{'comment'}");
kent@mysql.com's avatar
kent@mysql.com committed
69
  }
70
  elsif ( $tinfo->{'comment'} )
kent@mysql.com's avatar
kent@mysql.com committed
71
  {
72
    mtr_report("[ skipped ]   $tinfo->{'comment'}");
73
  }
74 75
  else
  {
76
    mtr_report("[ skipped ]");
77
  }
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
}

sub mtr_report_tests_not_skipped_though_disabled ($) {
  my $tests= shift;

  if ( $::opt_enable_disabled )
  {
    my @disabled_tests= grep {$_->{'dont_skip_though_disabled'}} @$tests;
    if ( @disabled_tests )
    {
      print "\nTest(s) which will be run though they are marked as disabled:\n";
      foreach my $tinfo ( sort {$a->{'name'} cmp $b->{'name'}} @disabled_tests )
      {
        printf "  %-20s : %s\n", $tinfo->{'name'}, $tinfo->{'comment'};
      }
    }
kent@mysql.com's avatar
kent@mysql.com committed
94
  }
kent@mysql.com's avatar
kent@mysql.com committed
95 96 97 98 99 100
}

sub mtr_report_test_passed ($) {
  my $tinfo= shift;

  my $timer=  "";
101
  if ( $::opt_timer and -f "$::opt_vardir/log/timer" )
kent@mysql.com's avatar
kent@mysql.com committed
102
  {
103
    $timer= mtr_fromfile("$::opt_vardir/log/timer");
104
    $tot_real_time += ($timer/1000);
kent@mysql.com's avatar
kent@mysql.com committed
105 106
    $timer= sprintf "%12s", $timer;
  }
kent@mysql.com's avatar
kent@mysql.com committed
107
  $tinfo->{'result'}= 'MTR_RES_PASSED';
108
  mtr_report("[ pass ]   $timer");
kent@mysql.com's avatar
kent@mysql.com committed
109 110 111 112 113 114
}

sub mtr_report_test_failed ($) {
  my $tinfo= shift;

  $tinfo->{'result'}= 'MTR_RES_FAILED';
msvensson@shellback.(none)'s avatar
msvensson@shellback.(none) committed
115
  if ( defined $tinfo->{'timeout'} )
116
  {
117
    mtr_report("[ fail ]  timeout");
118
    return;
119 120 121
  }
  else
  {
122
    mtr_report("[ fail ]");
123
  }
kent@mysql.com's avatar
kent@mysql.com committed
124

125 126
  if ( $tinfo->{'comment'} )
  {
127 128 129
    # The test failure has been detected by mysql-test-run.pl
    # when starting the servers or due to other error, the reason for
    # failing the test is saved in "comment"
130
    mtr_report("\nERROR: $tinfo->{'comment'}");
131 132
  }
  elsif ( -f $::path_timefile )
kent@mysql.com's avatar
kent@mysql.com committed
133
  {
134 135 136
    # Test failure was detected by test tool and it's report
    # about what failed has been saved to file. Display the report.
    print "\n";
kent@mysql.com's avatar
kent@mysql.com committed
137
    print mtr_fromfile($::path_timefile); # FIXME print_file() instead
138
    print "\n";
kent@mysql.com's avatar
kent@mysql.com committed
139 140 141
  }
  else
  {
142 143
    # Neither this script or the test tool has recorded info
    # about why the test has failed. Should be debugged.
144
    mtr_report("\nUnexpected termination, probably when starting mysqld");;
kent@mysql.com's avatar
kent@mysql.com committed
145
  }
kent@mysql.com's avatar
kent@mysql.com committed
146 147 148 149 150 151 152 153 154 155 156 157 158
}

sub mtr_report_stats ($) {
  my $tests= shift;

  # ----------------------------------------------------------------------
  # Find out how we where doing
  # ----------------------------------------------------------------------

  my $tot_skiped= 0;
  my $tot_passed= 0;
  my $tot_failed= 0;
  my $tot_tests=  0;
159
  my $tot_restarts= 0;
160
  my $found_problems= 0; # Some warnings in the logfiles are errors...
kent@mysql.com's avatar
kent@mysql.com committed
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177

  foreach my $tinfo (@$tests)
  {
    if ( $tinfo->{'result'} eq 'MTR_RES_SKIPPED' )
    {
      $tot_skiped++;
    }
    elsif ( $tinfo->{'result'} eq 'MTR_RES_PASSED' )
    {
      $tot_tests++;
      $tot_passed++;
    }
    elsif ( $tinfo->{'result'} eq 'MTR_RES_FAILED' )
    {
      $tot_tests++;
      $tot_failed++;
    }
178 179 180 181
    if ( $tinfo->{'restarted'} )
    {
      $tot_restarts++;
    }
kent@mysql.com's avatar
kent@mysql.com committed
182 183 184 185 186 187 188 189 190 191 192 193 194
  }

  # ----------------------------------------------------------------------
  # Print out a summary report to screen
  # ----------------------------------------------------------------------

  if ( ! $tot_failed )
  {
    print "All $tot_tests tests were successful.\n";
  }
  else
  {
    my $ratio=  $tot_passed * 100 / $tot_tests;
195 196 197
    print "Failed $tot_failed/$tot_tests tests, ";
    printf("%.2f", $ratio);
    print "\% were successful.\n\n";
kent@mysql.com's avatar
kent@mysql.com committed
198 199
    print
      "The log files in var/log may give you some hint\n",
200
      "of what went wrong.\n",
kent@mysql.com's avatar
kent@mysql.com committed
201 202
      "If you want to report this error, please read first ",
      "the documentation at\n",
cmiller@zippy.cornsilk.net's avatar
cmiller@zippy.cornsilk.net committed
203
      "http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html\n";
kent@mysql.com's avatar
kent@mysql.com committed
204
  }
205 206
  if (!$::opt_extern)
  {
tsmith@quadxeon.mysql.com's avatar
tsmith@quadxeon.mysql.com committed
207
    print "The servers were restarted $tot_restarts times\n";
208
  }
209 210 211

  if ( $::opt_timer )
  {
212 213 214 215
    use English;

    mtr_report("Spent", sprintf("%.3f", $tot_real_time),"of",
	       time - $BASETIME, "seconds executing testcases");
216
  }
kent@mysql.com's avatar
kent@mysql.com committed
217 218

  # ----------------------------------------------------------------------
219 220
  # If a debug run, there might be interesting information inside
  # the "var/log/*.err" files. We save this info in "var/log/warnings"
kent@mysql.com's avatar
kent@mysql.com committed
221 222 223 224
  # ----------------------------------------------------------------------

  if ( ! $::glob_use_running_server )
  {
225
    # Save and report if there was any fatal warnings/errors in err logs
kent@mysql.com's avatar
kent@mysql.com committed
226

227 228 229 230 231 232 233 234 235
    my $warnlog= "$::opt_vardir/log/warnings";

    unless ( open(WARN, ">$warnlog") )
    {
      mtr_warning("can't write to the file \"$warnlog\": $!");
    }
    else
    {
      # We report different types of problems in order
236 237 238 239 240
      foreach my $pattern ( "^Warning:",
			    "\\[Warning\\]",
			    "\\[ERROR\\]",
			    "^Error:", "^==.* at 0x",
			    "InnoDB: Warning",
serg@janus.mylan's avatar
serg@janus.mylan committed
241
			    "InnoDB: Error",
242 243
			    "^safe_mutex:",
			    "missing DBUG_RETURN",
244
			    "mysqld: Warning",
245
			    "allocated at line",
246 247 248 249
			    "Attempting backtrace", "Assertion .* failed" )
      {
        foreach my $errlog ( sort glob("$::opt_vardir/log/*.err") )
        {
250
	  my $testname= "";
251 252 253 254 255
          unless ( open(ERR, $errlog) )
          {
            mtr_warning("can't read $errlog");
            next;
          }
256
          my $leak_reports_expected= undef;
257 258
          while ( <ERR> )
          {
259 260 261 262 263 264 265 266 267 268
            # There is a test case that purposely provokes a
            # SAFEMALLOC leak report, even though there is no actual
            # leak. We need to detect this, and ignore the warning in
            # that case.
            if (/Begin safemalloc memory dump:/) {
              $leak_reports_expected= 1;
            } elsif (/End safemalloc memory dump./) {
              $leak_reports_expected= undef;
            }

269
            # Skip some non fatal warnings from the log files
270 271 272 273 274 275 276 277 278 279 280 281
            if (
		/\"SELECT UNIX_TIMESTAMP\(\)\" failed on master/ or
		/Aborted connection/ or
		/Client requested master to start replication from impossible position/ or
		/Could not find first log file name in binary log/ or
		/Enabling keys got errno/ or
		/Error reading master configuration/ or
		/Error reading packet/ or
		/Event Scheduler/ or
		/Failed to open log/ or
		/Failed to open the existing master info file/ or
		/Forcing shutdown of [0-9]* plugins/ or
282 283
                /Can't open shared library .*\bha_example\b/ or
                /Couldn't load plugin .*\bha_example\b/ or
284 285 286 287 288 289

		# Due to timing issues, it might be that this warning
		# is printed when the server shuts down and the
		# computer is loaded.
		/Forcing close of thread \d+  user: '.*?'/ or

290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
		/Got error [0-9]* when reading table/ or
		/Incorrect definition of table/ or
		/Incorrect information in file/ or
		/InnoDB: Warning: we did not need to do crash recovery/ or
		/Invalid \(old\?\) table or database name/ or
		/Lock wait timeout exceeded/ or
		/Log entry on master is longer than max_allowed_packet/ or
                /unknown option '--loose-/ or
                /unknown variable 'loose-/ or
		/You have forced lower_case_table_names to 0 through a command-line option/ or
		/Setting lower_case_table_names=2/ or
		/NDB Binlog:/ or
		/NDB: failed to setup table/ or
		/NDB: only row based binary logging/ or
		/Neither --relay-log nor --relay-log-index were used/ or
		/Query partially completed/ or
		/Slave I.O thread aborted while waiting for relay log/ or
		/Slave SQL thread is stopped because UNTIL condition/ or
		/Slave SQL thread retried transaction/ or
		/Slave \(additional info\)/ or
		/Slave: .*Duplicate column name/ or
		/Slave: .*master may suffer from/ or
		/Slave: According to the master's version/ or
		/Slave: Column [0-9]* type mismatch/ or
		/Slave: Error .* doesn't exist/ or
		/Slave: Error .*Deadlock found/ or
		/Slave: Error .*Unknown table/ or
		/Slave: Error in Write_rows event: / or
		/Slave: Field .* of table .* has no default value/ or
319
                /Slave: Field .* doesn't have a default value/ or
320 321 322 323 324 325
		/Slave: Query caused different errors on master and slave/ or
		/Slave: Table .* doesn't exist/ or
		/Slave: Table width mismatch/ or
		/Slave: The incident LOST_EVENTS occured on the master/ or
		/Slave: Unknown error.* 1105/ or
		/Slave: Can't drop database.* database doesn't exist/ or
326
                /Slave SQL:.*(?:Error_code: \d+|Query:.*)/ or
327 328 329 330 331 332 333 334 335 336 337 338 339 340
		/Sort aborted/ or
		/Time-out in NDB/ or
		/Warning:\s+One can only use the --user.*root/ or
		/Warning:\s+Setting lower_case_table_names=2/ or
		/Warning:\s+Table:.* on (delete|rename)/ or
		/You have an error in your SQL syntax/ or
		/deprecated/ or
		/description of time zone/ or
		/equal MySQL server ids/ or
		/error .*connecting to master/ or
		/error reading log entry/ or
		/lower_case_table_names is set/ or
		/skip-name-resolve mode/ or
		/slave SQL thread aborted/ or
tsmith@quadxeon.mysql.com's avatar
tsmith@quadxeon.mysql.com committed
341
		/Slave: .*Duplicate entry/ or
342 343 344 345
		# Special case for Bug #26402 in show_check.test
		# Question marks are not valid file name parts
		# on Windows platforms. Ignore this error message. 
		/\QCan't find file: '.\test\????????.frm'\E/ or
tsmith@quadxeon.mysql.com's avatar
tsmith@quadxeon.mysql.com committed
346 347 348
		# Special case, made as specific as possible, for:
		# Bug #28436: Incorrect position in SHOW BINLOG EVENTS causes
		#             server coredump
349
		/\QError in Log_event::read_log_event(): 'Sanity check failed', data_len: 258, event_type: 49\E/ or
350 351
                /Statement is not safe to log in statement format/ or

serg@janus.mylan's avatar
serg@janus.mylan committed
352 353
                # test case for Bug#bug29807 copies a stray frm into database
                /InnoDB: Error: table `test`.`bug29807` does not exist in the InnoDB internal/ or
354
                /Cannot find or open table test\/bug29807 from/ or
serg@janus.mylan's avatar
serg@janus.mylan committed
355 356 357 358 359 360

                # innodb foreign key tests that fail in ALTER or RENAME produce this
                /InnoDB: Error: in ALTER TABLE `test`.`t[12]`/ or
                /InnoDB: Error: in RENAME TABLE table `test`.`t1`/ or
                /InnoDB: Error: table `test`.`t[12]` does not exist in the InnoDB internal/ or

361 362 363
                # Test case for Bug#14233 produces the following warnings:
                /Stored routine 'test'.'bug14233_1': invalid value in column mysql.proc/ or
                /Stored routine 'test'.'bug14233_2': invalid value in column mysql.proc/ or
364 365
                /Stored routine 'test'.'bug14233_3': invalid value in column mysql.proc/ or

366 367
                # BUG#29839 - lowercase_table3.test: Cannot find table test/T1
                #             from the internal data dictiona
368
                /Cannot find table test\/BUG29839 from the internal data dictionary/ or
369 370
                # BUG#32080 - Excessive warnings on Solaris: setrlimit could not
                #             change the size of core files
371
                /setrlimit could not change the size of core files to 'infinity'/ or
372 373 374 375 376 377

		# rpl_extrColmaster_*.test, the slave thread produces warnings
		# when it get updates to a table that has more columns on the
		# master
		/Slave: Unknown column 'c7' in 't15' Error_code: 1054/ or
		/Slave: Can't DROP 'c7'.* 1091/ or
378 379 380 381 382 383 384 385
		/Slave: Key column 'c6'.* 1072/ or

		# rpl_idempotency.test produces warnings for the slave.
		($testname eq 'rpl.rpl_idempotency' and
		 (/Slave: Can\'t find record in \'t1\' Error_code: 1032/ or
                  /Slave: Cannot add or update a child row: a foreign key constraint fails .* Error_code: 1452/
		 )) or

386
		# These tests does "kill" on queries, causing sporadic errors when writing to logs
387
		(($testname eq 'rpl.rpl_skip_error' or
388
		  $testname eq 'rpl.rpl_err_ignoredtable' or
389 390
		  $testname eq 'binlog.binlog_killed_simulate' or
		  $testname eq 'binlog.binlog_killed') and
391
		 (/Failed to write to mysql\.\w+_log/
392 393
		 )) or

394 395 396 397 398
		# rpl_bug33931 has deliberate failures
		($testname eq 'rpl.rpl_bug33931' and
		 (/Failed during slave.*thread initialization/
		  )) or

399 400 401
		# rpl_temporary has an error on slave that can be ignored
		($testname eq 'rpl.rpl_temporary' and
		 (/Slave: Can\'t find record in \'user\' Error_code: 1032/
402 403
		 )) or

404 405
                # Test case for Bug#31590 produces the following error:
                /Out of sort memory; increase server sort buffer size/
406
		)
407 408 409
            {
              next;                       # Skip these lines
            }
410 411 412 413
	    if ( /CURRENT_TEST: (.*)/ )
	    {
	      $testname= $1;
	    }
414 415
            if ( /$pattern/ )
            {
416 417 418
              if ($leak_reports_expected) {
                next;
              }
419
              $found_problems= 1;
420
              print WARN basename($errlog) . ": $testname: $_";
421 422 423 424
            }
          }
        }
      }
425

426
      if ( $::opt_check_testcases )
427
      {
428 429 430 431 432 433 434
        # Look for warnings produced by mysqltest in testname.warnings
        foreach my $test_warning_file
	  ( glob("$::glob_mysql_test_dir/r/*.warnings") )
        {
          $found_problems= 1;
	  print WARN "Check myqltest warnings in $test_warning_file\n";
        }
435 436
      }

437 438 439 440 441 442
      if ( $found_problems )
      {
	mtr_warning("Got errors/warnings while running tests, please examine",
		    "\"$warnlog\" for details.");
      }
    }
kent@mysql.com's avatar
kent@mysql.com committed
443 444 445 446
  }

  print "\n";

447
  # Print a list of testcases that failed
kent@mysql.com's avatar
kent@mysql.com committed
448 449
  if ( $tot_failed != 0 )
  {
450 451
    my $test_mode= join(" ", @::glob_test_mode) || "default";
    print "mysql-test-run in $test_mode mode: *** Failing the test(s):";
kent@mysql.com's avatar
kent@mysql.com committed
452 453 454 455 456 457 458 459 460

    foreach my $tinfo (@$tests)
    {
      if ( $tinfo->{'result'} eq 'MTR_RES_FAILED' )
      {
        print " $tinfo->{'name'}";
      }
    }
    print "\n";
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482

  }

  # Print a list of check_testcases that failed(if any)
  if ( $::opt_check_testcases )
  {
    my @check_testcases= ();

    foreach my $tinfo (@$tests)
    {
      if ( defined $tinfo->{'check_testcase_failed'} )
      {
	push(@check_testcases, $tinfo->{'name'});
      }
    }

    if ( @check_testcases )
    {
      print "Check of testcase failed for: ";
      print join(" ", @check_testcases);
      print "\n\n";
    }
483
  }
484

485 486
  if ( $tot_failed != 0 || $found_problems)
  {
tsmith@quadxeon.mysql.com's avatar
tsmith@quadxeon.mysql.com committed
487
    mtr_error("there were failing test cases");
kent@mysql.com's avatar
kent@mysql.com committed
488 489 490 491 492 493 494 495 496 497 498 499 500
  }
}

##############################################################################
#
#  Text formatting
#
##############################################################################

sub mtr_print_line () {
  print '-' x 55, "\n";
}

kent@mysql.com's avatar
kent@mysql.com committed
501 502 503 504
sub mtr_print_thick_line () {
  print '=' x 55, "\n";
}

kent@mysql.com's avatar
kent@mysql.com committed
505 506 507 508
sub mtr_print_header () {
  print "\n";
  if ( $::opt_timer )
  {
kent@mysql.com's avatar
kent@mysql.com committed
509
    print "TEST                           RESULT         TIME (ms)\n";
kent@mysql.com's avatar
kent@mysql.com committed
510 511 512
  }
  else
  {
kent@mysql.com's avatar
kent@mysql.com committed
513
    print "TEST                           RESULT\n";
kent@mysql.com's avatar
kent@mysql.com committed
514 515 516 517 518 519 520 521
  }
  mtr_print_line();
  print "\n";
}


##############################################################################
#
522
#  Log and reporting functions
kent@mysql.com's avatar
kent@mysql.com committed
523 524 525
#
##############################################################################

526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
use IO::File;

my $log_file_ref= undef;

sub mtr_log_init ($) {
  my ($filename)= @_;

  mtr_error("Log is already open") if defined $log_file_ref;

  $log_file_ref= IO::File->new($filename, "a") or
    mtr_warning("Could not create logfile $filename: $!");
}

sub _mtr_log (@) {
  print $log_file_ref join(" ", @_),"\n"
    if defined $log_file_ref;
}

kent@mysql.com's avatar
kent@mysql.com committed
544
sub mtr_report (@) {
545 546
  # Print message to screen and log
  _mtr_log(@_);
kent@mysql.com's avatar
kent@mysql.com committed
547 548 549 550
  print join(" ", @_),"\n";
}

sub mtr_warning (@) {
551 552
  # Print message to screen and log
  _mtr_log("WARNING: ", @_);
kent@mysql.com's avatar
kent@mysql.com committed
553 554 555 556
  print STDERR "mysql-test-run: WARNING: ",join(" ", @_),"\n";
}

sub mtr_error (@) {
557 558
  # Print message to screen and log
  _mtr_log("ERROR: ", @_);
kent@mysql.com's avatar
kent@mysql.com committed
559 560
  print STDERR "mysql-test-run: *** ERROR: ",join(" ", @_),"\n";
  mtr_exit(1);
kent@mysql.com's avatar
kent@mysql.com committed
561 562
}

563
sub mtr_child_error (@) {
564 565
  # Print message to screen and log
  _mtr_log("ERROR(child): ", @_);
566 567 568 569
  print STDERR "mysql-test-run: *** ERROR(child): ",join(" ", @_),"\n";
  exit(1);
}

kent@mysql.com's avatar
kent@mysql.com committed
570
sub mtr_debug (@) {
571
  # Only print if --script-debug is used
kent@mysql.com's avatar
kent@mysql.com committed
572 573
  if ( $::opt_script_debug )
  {
574
    _mtr_log("###: ", @_);
kent@mysql.com's avatar
kent@mysql.com committed
575
    print STDERR "####: ",join(" ", @_),"\n";
kent@mysql.com's avatar
kent@mysql.com committed
576 577
  }
}
578

579
sub mtr_verbose (@) {
580 581
  # Always print to log, print to screen only when --verbose is used
  _mtr_log("> ",@_);
582 583 584 585 586
  if ( $::opt_verbose )
  {
    print STDERR "> ",join(" ", @_),"\n";
  }
}
kent@mysql.com's avatar
kent@mysql.com committed
587 588

1;