projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e184b
)
tests/gem_exec_nop: implemented correct SKIP reporting
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 5 Dec 2012 18:29:11 +0000
(19:29 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 5 Dec 2012 18:29:11 +0000
(19:29 +0100)
I think I need a testsuite for test writing.
tests/gem_exec_nop.c
patch
|
blob
|
history
diff --git
a/tests/gem_exec_nop.c
b/tests/gem_exec_nop.c
index
70dfe96
..
8608592
100644
(file)
--- a/
tests/gem_exec_nop.c
+++ b/
tests/gem_exec_nop.c
@@
-43,6
+43,8
@@
#include "drmtest.h"
#include "intel_gpu_tools.h"
+bool skipped_all = true;
+
static double elapsed(const struct timeval *start,
const struct timeval *end,
int loop)
@@
-91,6
+93,8
@@
static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
{
int count;
+ skipped_all = false;
+
for (count = 1; count <= 1<<17; count <<= 1) {
struct timeval start, end;
@@
-135,5
+139,5
@@
int main(int argc, char **argv)
close(fd);
- return 0;
+ return
skipped_all ? 77 :
0;
}