Eli Zaretskii writes: Hi Eli, > Does the above fit the bill? If not, what else is needed for the > mock-up method? I have tried the following patch. It still runs as expected on my GNU/Linux machine. Could you pls check for MS Windows? If it works there, I'll commit to the emacs-26 branch (and similar patches for filenotify-tests.el and tramp-tests.el).