mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
gem_lut_handle: Print some more information upon failure
References: https://bugs.freedesktop.org/show_bug.cgi?id=65391
This commit is contained in:
parent
5bb0897f73
commit
e56754965f
@ -169,8 +169,15 @@ static int many_exec(int fd, uint32_t batch, int num_exec, int num_reloc, unsign
|
||||
}
|
||||
|
||||
#define _fail(x) ((x) == -1 && errno == ENOENT)
|
||||
#define fail(x) assert(_fail(x))
|
||||
#define pass(x) assert(!_fail(x))
|
||||
#define ASSERT(x) do { \
|
||||
if (!(x)) { \
|
||||
fprintf(stderr, "%s:%d failed, errno=%d\n", \
|
||||
__FUNCTION__, __LINE__, errno); \
|
||||
abort(); \
|
||||
} \
|
||||
} while (0)
|
||||
#define fail(x) ASSERT(_fail(x))
|
||||
#define pass(x) ASSERT(!_fail(x))
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user