# HG changeset patch # User Sergey Kandaurov # Date 1456826201 -10800 # Node ID 3021b44d059491f0ce46e2982a89e9c7dcc81f02 # Parent 6868e610eacc168ac798bfafdf15d13abf28f815 Tests: added mp4.t TODO for nginx built on i386 hosts by gcc 5. This produces i387 instructions that is a subject to rounding error. diff --git a/mp4.t b/mp4.t --- a/mp4.t +++ b/mp4.t @@ -13,6 +13,8 @@ use strict; use Test::More; +use Config; + BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; @@ -70,8 +72,15 @@ is(durations($t, 6, 9), '3.0 3.0', 'star is(durations($t, 2.7, 5.6), '2.9 2.9', 'start end float'); is(durations($t, undef, 9), '9.0 9.0', 'end integer'); + +TODO: { +local $TODO = 'not yet' + if $Config{myarchname} =~ /i.86/ && $t->has_module('built by gcc 5'); + is(durations($t, undef, 5.6), '5.6 5.6', 'end float'); +} + # invalid range results in ignoring end argument like(http_head('/test.mp4?start=1&end=1'), qr/200 OK/, 'zero range');