From: Eric Bollengier Date: Wed, 15 May 2019 08:51:01 +0000 (+0200) Subject: Allow to hangup/blowup inside a file for tests X-Git-Tag: Release-9.4.4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56edd95018514f72214ada04fb7dfa1f4f2f23c7;p=thirdparty%2Fbacula.git Allow to hangup/blowup inside a file for tests --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index 7e001381d..4df5d2f56 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -759,6 +759,11 @@ bool process_and_send_data(bctx_t &bctx) jcr->ReadBytes += sd->msglen; /* count bytes read */ + /* Debug code: check if we must hangup or blowup */ + if (handle_hangup_blowup(jcr, 0, jcr->ReadBytes)) { + goto err; + } + /** Uncompressed cipher input length */ bctx.cipher_input_len = sd->msglen;