From owner-freebsd-testing@FreeBSD.ORG Sun Feb 15 20:45:36 2015 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7DD83DBA for ; Sun, 15 Feb 2015 20:45:36 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A2085EB for ; Sun, 15 Feb 2015 20:45:36 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1FKjafD097627 for ; Sun, 15 Feb 2015 20:45:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-testing@freebsd.org Subject: [Bug 197612] usr.sbin.pw.pw_usernext:usernext* tests are broken (but pass sometimes...?) Date: Sun, 15 Feb 2015 20:45:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ngie@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-testing@freebsd.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2015 20:45:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197612 --- Comment #8 from Garrett Cooper,425-314-3911 --- (In reply to Brad Davis from comment #7) It will. Why isn't arithmetic done properly with the base value though..? $ sudo /usr/libexec/atf-sh pw_usernext.sh usernext pw_usernext.sh: WARNING: Running test cases outside of kyua(1) is unsupported pw_usernext.sh: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) Executing command [ pw -V /root useradd test1 ] Executing command [ pw -V /root useradd test2 ] Executing command [ pw -V /root useradd test3 ] Executing command [ pw -V /root useradd test4 ] Executing command [ pw -V /root useradd test5 ] Executing command [ pw -V /root usernext ] passed [ngie@fuji-current-amd64 /usr/src.svn/usr.sbin/pw/tests]$ sudo /usr/libexec/atf-sh pw_usernext.sh usernext_assigned_group pw_usernext.sh: WARNING: Running test cases outside of kyua(1) is unsupported pw_usernext.sh: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4) Executing command [ pw -V /root useradd -n test1 -g 0 ] Executing command [ pw -V /root usernext ] passed $ svn diff pw_usernext.sh Index: pw_usernext.sh =================================================================== --- pw_usernext.sh (revision 278777) +++ pw_usernext.sh (working copy) @@ -15,7 +15,7 @@ atf_check -s exit:0 ${PW} useradd test$var0 var0=`expr $var0 + 1` done - atf_check -s exit:0 -o match:"100${LIMIT}:100${LIMIT}" \ + atf_check -s exit:0 -o match:"$(( 1000 + ${LIMIT} )):$(( 1000 + ${LIMIT} ))" \ ${PW} usernext } @@ -32,7 +32,7 @@ atf_check -s exit:0 ${PW} useradd -n test$var0 -g 0 var0=`expr $var0 + 1` done - atf_check -s exit:0 -o match:"100${LIMIT}:1001" \ + atf_check -s exit:0 -o match:"$(( 1000 + ${LIMIT} )):1001" \ ${PW} usernext } -- You are receiving this mail because: You are the assignee for the bug.