Fix tests creating coredumps

Merged Philip Withnall requested to merge pwithnall/glib:436-test-coredumps into master

See the commit messages.

Closes #436 (closed)

Merge request reports