On Tue, 24 Aug 2021 at 14:32, Jonathan Wakely <jwakely....@gmail.com> wrote: > > On Tue, 24 Aug 2021 at 13:49, David Malcolm wrote: > > Is there a recipe for testing this via > > wine? (it's been almost 20 years since I did any Windows coding...) > > I use this for running libstdc++ tests under Wine: > > Xvfb :9 -screen 0 1024x768x16 & > trap 'kill %1' EXIT > # Start wine on the dummy X server, running a simple program. > # This means that each "wine a.exe" below won't start wine again. > DISPLAY=:9.0 WINEDEBUG=fixme-all wine view.exe & > trap 'kill -INT %2 && sleep 2 && kill -INT %1' EXIT > > and then "WINEDEBUG=fixme-font wine a.exe" to run an executable a.exe > built by a mingw-w64 cross compiler.
That's in a script btw. The traps mean that no wine processes are left hanging around after the script exits.