packaging: Fix gcov build error by adding the ignore error cases