diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-02 05:10:31 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-02 05:11:55 +0000 |
commit | 80aad709954cc4a3a294200e242876599047cef8 (patch) | |
tree | d0926efff4b1800a61933bc5c09d93db34d32e14 /java/t | |
parent | db98ac041ec36c4e2ce322d336f5792fa8e6922d (diff) | |
download | libguestfs-80aad709954cc4a3a294200e242876599047cef8.tar.gz libguestfs-80aad709954cc4a3a294200e242876599047cef8.tar.xz libguestfs-80aad709954cc4a3a294200e242876599047cef8.zip |
java: Remove old test file if one was left around.
If a test.img file was left over from a previous run, then it
would cause the subsequent test to fail. Therefore remove any
old test.img file.
Diffstat (limited to 'java/t')
-rw-r--r-- | java/t/GuestFS010Basic.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/t/GuestFS010Basic.java b/java/t/GuestFS010Basic.java index f4778dc0..137fad3c 100644 --- a/java/t/GuestFS010Basic.java +++ b/java/t/GuestFS010Basic.java @@ -24,6 +24,10 @@ public class GuestFS010Basic public static void main (String[] argv) { try { + // Delete any previous test file if one was left around. + File old = new File ("test.img"); + old.delete (); + RandomAccessFile f = new RandomAccessFile ("test.img", "rw"); f.setLength (500 * 1024 * 1024); f.close (); |