~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to lib/GenTest.pm

  • Committer: Bernt M. Johnsen
  • Date: 2010-03-04 12:45:54 UTC
  • mto: (0.101.22 lp-randgen-xml)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: bernt.johnsen@sun.com-20100304124554-6v46wa6dks03s8nq
Fix referneces to error_log, time-stamp on valgrind and some more

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
package GenTest;
19
19
use base 'Exporter';
20
 
@EXPORT = ('say', 'sayFile', 'tmpdir', 'safe_exit', 'windows', 'solaris', 'xml_timestamp', 'rqg_debug');
 
20
@EXPORT = ('say', 'sayFile', 'tmpdir', 'safe_exit', 'windows', 'solaris', 'xml_timestamp', 'rqg_debug', 'isodate');
21
21
 
22
22
use strict;
23
23
 
83
83
 
84
84
        if ($text =~ m{[\r\n]}sio) {
85
85
                foreach my $line (split (m{[\r\n]}, $text)) {
86
 
                        print "# ".sprintf("%02d:%02d:%02d", $t[2], $t[1], $t[0])." $line\n";
 
86
                        print "# ".sprintf("%04d-%02d-%02d %02d:%02d:%02d", $t[5]+1900, $t[4]+1, $t[3], $t[2], $t[1], $t[0])." $line\n";
87
87
                }
88
88
        } else {
89
 
                print "# ".sprintf("%02d:%02d:%02d", $t[2], $t[1], $t[0])." $text\n";
 
89
                print "# ".sprintf("%04d-%02d-%02d %02d:%02d:%02d", $t[5]+1900, $t[4]+1, $t[3], $t[2], $t[1], $t[0])." $text\n";
90
90
        }
91
91
}
92
92