Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1ABDF100DA for ; Sun, 14 Jul 2013 17:59:06 +0000 (UTC) Received: (qmail 78537 invoked by uid 500); 14 Jul 2013 17:59:04 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 78450 invoked by uid 500); 14 Jul 2013 17:59:03 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 78438 invoked by uid 99); 14 Jul 2013 17:59:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jul 2013 17:59:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jul 2013 17:59:02 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2C85C23888E2; Sun, 14 Jul 2013 17:58:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1503007 - /httpd/test/framework/trunk/t/modules/include.t Date: Sun, 14 Jul 2013 17:58:42 -0000 To: cvs@httpd.apache.org From: rjung@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130714175842.2C85C23888E2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rjung Date: Sun Jul 14 17:58:41 2013 New Revision: 1503007 URL: http://svn.apache.org/r1503007 Log: Fix: Use of uninitialized value in scalar assignment at t/modules/include.t line 346. And: && has higher precedence than "=". IMHO "&&" was meant to be run after the assignment similar to the shell idiom. Modified: httpd/test/framework/trunk/t/modules/include.t Modified: httpd/test/framework/trunk/t/modules/include.t URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/include.t?rev=1503007&r1=1503006&r2=1503007&view=diff ============================================================================== --- httpd/test/framework/trunk/t/modules/include.t (original) +++ httpd/test/framework/trunk/t/modules/include.t Sun Jul 14 17:58:41 2013 @@ -322,7 +322,7 @@ else { my $httpdtz = $1 if $result =~ /\w+, \d+-\w+-\d+ \d+:\d+:\d+ (\w+) /; my $oldtimezone = $ENV{TZ}; - ($ENV{TZ} = $httpdtz && tzset) if $httpdtz; + (($ENV{TZ} = $httpdtz) && tzset) if $httpdtz; my $file = catfile($htdocs, splitpath($dir), "file.shtml"); my $mtime = (stat $file)[9]; @@ -343,7 +343,13 @@ else { $strftime->("%s"), $strftime->("%s"); - $ENV{TZ} = $oldtimezone && tzset; + if (defined($oldtimezone)) { + $ENV{TZ} = $oldtimezone; + } + else { + delete($ENV{TZ}); + } + tzset; # trim output $expected = single_space($expected);