[ROSAUTOTEST] Cache the result of GetLastError().