Show
Ignore:
Timestamp:
06/13/08 01:01:43 (18 months ago)
Author:
auno
Message:

More fix for perl test. BugzID:79876

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/t/lib/MT/Test.pm

    r2530 r2563  
    3737our $CORE_TIME; 
    3838BEGIN { 
    39     *CORE::GLOBAL::time  = sub { CORE::time }; 
     39    *CORE::GLOBAL::time  = sub { my ($a) = @_; $a ? CORE::time + $_[0] : CORE::time }; 
    4040    *CORE::GLOBAL::sleep = sub { CORE::sleep }; 
    4141} 
     
    595595        $cmt->commenter_id($chuckd->id); 
    596596        $cmt->visible(1); 
     597        $cmt->created_on('20040910183000'); 
    597598        $cmt->id(14); 
    598599        $cmt->save or die "Couldn't save comment record 1: ".$cmt->errstr; 
     
    601602        $cmt->commenter_id($bobd->id); 
    602603        $cmt->visible(1); 
     604        $cmt->created_on('20040910182800'); 
    603605        $cmt->id(15); 
    604606        $cmt->save or die "Couldn't save comment record 1: ".$cmt->errstr;