Avoid test generating core file on segv

We do not want to look at the core file, so avoid generating it
and then having to manually clear it later.