tests: Remove test-error.c and replace with a script that uses nbdsh.
commitd5a12cb33f416311f6a95aed98cda03b614230ec
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 16 Nov 2019 09:26:21 +0000 (16 09:26 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 16 Nov 2019 09:31:50 +0000 (16 09:31 +0000)
treebbbe48f30a6c8a33751c995453e5feec5ca31778
parentea08166d5508220d78a516a67c871442e09610e5
tests: Remove test-error.c and replace with a script that uses nbdsh.

test-error.c was a strange test.  It tested that ext2 filesystems
could recover from block device errors after we trigger an error and
then remove the trigger, which is kind of interesting but also
irrelevant to NBD.  It also failed to test that the EIO error is
properly propagated back through libguestfs.

test-error100.sh already tested error propagation correctly.

This adds a new test that tests error triggering using nbdsh, and
removes test-error.c.
.gitignore
tests/Makefile.am
tests/test-error-triggered.sh [new file with mode: 0755]
tests/test-error.c [deleted file]