From owner-svn-src-user@FreeBSD.ORG Wed Feb 4 09:16:15 2015 Return-Path: Delivered-To: svn-src-user@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 C7B611F6; Wed, 4 Feb 2015 09:16:15 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (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 B3DCC2F1; Wed, 4 Feb 2015 09:16:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t149GFaY020119; Wed, 4 Feb 2015 09:16:15 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t149GF2i020118; Wed, 4 Feb 2015 09:16:15 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201502040916.t149GF2i020118@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Wed, 4 Feb 2015 09:16:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r278187 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 09:16:15 -0000 Author: pho Date: Wed Feb 4 09:16:14 2015 New Revision: 278187 URL: https://svnweb.freebsd.org/changeset/base/278187 Log: Use jot(1) to generate a random value. Fix trailing whitespace. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/pthread6.sh Modified: user/pho/stress2/misc/pthread6.sh ============================================================================== --- user/pho/stress2/misc/pthread6.sh Wed Feb 4 09:14:07 2015 (r278186) +++ user/pho/stress2/misc/pthread6.sh Wed Feb 4 09:16:14 2015 (r278187) @@ -39,8 +39,7 @@ rm -f pthread6.c /tmp/pthread6.core rm -f /tmp/pthread6.core daemon sh -c "(cd $here/../testcases/swap; ./swap -t 2m -i 20 -k)" -rnd=`od -An -N1 -t u1 /dev/urandom | sed 's/ //g'` -sleep $((rnd % 10)) +sleep `jot -r 1 1 9` for i in `jot 50`; do /tmp/pthread6 done @@ -299,7 +298,7 @@ main(void) test(); } - for (j = 0; j < PARALLEL; j++) + for (j = 0; j < PARALLEL; j++) wait(NULL); }