va_end(args);
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
+ "Last errno: %i, %s\n"
"Test requirement: (%s)\n%s",
- func, file, line, check, buf);
+ func, file, line, errno, strerror(errno), check, buf);
} else {
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
+ "Last errno: %i, %s\n"
"Test requirement: (%s)\n",
- func, file, line, check);
+ func, file, line, errno, strerror(errno), check);
}
}
va_list args;
printf("Test assertion failure function %s, file %s:%i:\n"
+ "Last errno: %i, %s\n"
"Failed assertion: %s\n",
- func, file, line, assertion);
+ func, file, line, errno, strerror(errno), assertion);
if (f) {
va_start(args, f);