Received: from eggs.gnu.org ([2001:4830:134:3::10]:46665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLXxN-0001a9-MZ for qemu-devel@nongnu.org; Tue, 19 Jan 2016 10:12:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLXxI-0004Um-Ow for qemu-devel@nongnu.org; Tue, 19 Jan 2016 10:12:29 -0500 From: Alberto Garcia In-Reply-To: <1452823763-4235-3-git-send-email-famz@redhat.com> References: <1452823763-4235-1-git-send-email-famz@redhat.com> <1452823763-4235-3-git-send-email-famz@redhat.com> Date: Tue, 19 Jan 2016 16:12:19 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v4 2/2] iotests: Test that negative and large throttle values are rejected List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , Markus Armbruster , qemu-block@nongnu.org, mreitz@redhat.com On Fri 15 Jan 2016 03:09:23 AM CET, Fam Zheng wrote: > echo > +echo === Catching negative/large throttling values === > +echo > + > +run_qemu -drive file="$TEST_IMG",iops=-1 > +run_qemu -drive file="$TEST_IMG",bps=-2 > +run_qemu -drive file="$TEST_IMG",bps_rd=-3 > +run_qemu -drive file="$TEST_IMG",bps_rd_max=-3 > +run_qemu -drive file="$TEST_IMG",throttling.iops-total=-4 > +run_qemu -drive file="$TEST_IMG",throttling.bps-total=-5 > +run_qemu -drive file="$TEST_IMG",bps=1000000000000001 Now that you're at it, you could also check that 0 and 1000000000000000 _do_ work. Either way, Reviewed-by: Alberto Garcia Berto