detect SKIP in valgrind tests

Otherwise a SKIP is a failure.