Fix the test if core limit (ulimit -c) is 1.