Generalize fugu failure handling in run-libcore-tests.sh am: b89a92e6fe am: de087a4afb

Change-Id: I60f44aa1f38705aeb285dd650a38c846d32b820e