Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11524 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84711 invoked by uid 1010); 23 Jul 2004 21:17:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83314 invoked from network); 23 Jul 2004 21:17:18 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 23 Jul 2004 21:17:18 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6NLHHe1025068 for ; Fri, 23 Jul 2004 17:17:17 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6NLHHa22996 for ; Fri, 23 Jul 2004 17:17:17 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i6NLHGHP015333 for ; Fri, 23 Jul 2004 22:17:16 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i6NLHFrW015332 for internals@lists.php.net; Fri, 23 Jul 2004 22:17:15 +0100 Date: Fri, 23 Jul 2004 22:17:15 +0100 To: internals@lists.php.net Message-ID: <20040723211715.GA15309@redhat.com> Mail-Followup-To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: [PHP-DEV] [PATCH] time/001.phpt fix From: jorton@redhat.com (Joe Orton) [resend] There's no reason why gettimeofday() shouldn''t return the same time in successive calls; this test fails spuriously on Linux/x86_64 (which has a particularly fast gettimeofday() implementation). --- ext/standard/tests/time/001.phpt 23 May 2003 20:56:33 -0000 1.4.2.2 +++ ext/standard/tests/time/001.phpt 16 Jul 2004 12:50:13 -0000 @@ -17,7 +17,7 @@ for ($i=1;$i<=100000;$i++) { list($micro,$time)=explode(" ",microtime()); - if ($time > $last_t || ($time == $last_t && $micro > $last_m)) { + if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) { $passed++; } else if ($failed++ <=10) { $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";