summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-12-05 19:29:11 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-12-05 19:29:11 +0100
commit51f08301ab5702db673fd4c2543ead7251641939 (patch)
tree0611d0cd4acbe77fddb7e74a1e73caf43dba0dc5
parent53e184b228b9bda43df75aa4ff919bc23f5caa09 (diff)
tests/gem_exec_nop: implemented correct SKIP reporting
I think I need a testsuite for test writing.
-rw-r--r--tests/gem_exec_nop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index 70dfe969..8608592a 100644
--- 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;
}