patch 8.2.3946: when an internal error makes Vim exit the error is not seen

Problem:    When an internal error makes Vim exit the error is not seen.
Solution:   Add the error to the test output.
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 912bc20..d4c42f3 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -304,6 +304,7 @@
 func EarlyExit(test)
   " It's OK for the test we use to test the quit detection.
   if a:test != 'Test_zz_quit_detected()'
+    call add(v:errors, v:errmsg)
     call add(v:errors, 'Test caused Vim to exit: ' . a:test)
   endif