Test for Bufleave autocommand that deletes the buffer we are about to edit.

STARTTEST
:au BufLeave test9.in bdel yy
:e yy
:/^start of/,$w! test.out      " Write contents of this file
:qa!
ENDTEST

start of test file xx
end of test file xx
