From: Tobias Oetiker Date: Sat, 21 Feb 2015 17:50:05 +0000 (+0100) Subject: test should not be dependent on the current time X-Git-Tag: v1.5.0-rc2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4518257d29ab7f02cf60c7a3f1784bc0f417e41e;p=thirdparty%2Frrdtool-1.x.git test should not be dependent on the current time --- diff --git a/bindings/perl-shared/t/callback.t b/bindings/perl-shared/t/callback.t index 47611d14..7883a960 100755 --- a/bindings/perl-shared/t/callback.t +++ b/bindings/perl-shared/t/callback.t @@ -46,8 +46,8 @@ RRDs::fetch_cb_register(sub{ my $result = RRDs::graphv "callback.png", "--title", "Callback Demo", - "--start", "now", - "--end", "start+1d", + "--start", "1424540800", + "--end", "start+24h", "--lower-limit=0", "--interlace", "--imgformat","PNG", @@ -66,5 +66,5 @@ if (my $ERROR = RRDs::error) { } my $a = $result->{'print[0]'}; -my $b = '0.725982'; +my $b = '0.722767'; ok("$a eq $b",$a eq $b);