diff --git a/test/test-lib.sh b/test/test-lib.sh
index 57cb088..3ad325a 100755
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -834,7 +834,7 @@ export NOTMUCH_CONFIG=$NOTMUCH_CONFIG
 #
 # --load		Force loading of notmuch.el and test-lib.el
 
-emacs --no-init-file --no-site-file \
+exec emacs --no-init-file --no-site-file \
 	--directory "$TEST_DIRECTORY/../emacs" --load notmuch.el \
 	--directory "$TEST_DIRECTORY" --load test-lib.el \
 	"\$@"

