diff --git a/test/vhost/other/negative.sh b/test/vhost/other/negative.sh index 350f0a844..1e73efe71 100755 --- a/test/vhost/other/negative.sh +++ b/test/vhost/other/negative.sh @@ -161,6 +161,11 @@ if $rpc_py vhost_scsi_controller_remove_target naa.0 0 > /dev/null; then error "Removing device 0 from controller naa.0 succeeded, but it shouldn't" fi +notice "Trying to remove scsi target with invalid slot number" +if $rpc_py vhost_scsi_controller_remove_target naa.0 8 > /dev/null; then + error "Removing device 8 from controller naa.0 succeeded, but it shouldn't" +fi + notice "Re-adding device 0 to naa.0" $rpc_py vhost_scsi_controller_add_target naa.0 0 Malloc0