X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-cancellation-download-librarycancels.sh;fp=regressions%2Ftest-cancellation-download-librarycancels.sh;h=2cacdd353777334d0ba6163d73201e2b4c94404b;hp=0000000000000000000000000000000000000000;hb=b5e29ac706004ad29da2e0949beda41e8e27e398;hpb=82c7e685bf71c70bd1c1c0b9db002157e5788db4 diff --git a/regressions/test-cancellation-download-librarycancels.sh b/regressions/test-cancellation-download-librarycancels.sh new file mode 100755 index 0000000..2cacdd3 --- /dev/null +++ b/regressions/test-cancellation-download-librarycancels.sh @@ -0,0 +1,40 @@ +#!/bin/sh - +# libguestfs +# Copyright (C) 2009 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +# Test download where the library cancels. +# +# + +set -e + +rm -f test.img + +../fish/guestfish <<'EOF' +add ../images/test.sqsh +run + +mount /dev/sda / + +# Download a file to /dev/full. +echo "Expect: write: /dev/full: No space left on device" +-download /100krandom /dev/full + +ping-daemon +EOF + +rm -f test.img