tests: roll out igt_simple_init/igt_simple_main

Also use igt_skip a bit more to simplify some of the tests.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-12-10 10:18:32 +01:00
parent ce1a9f918e
commit dda85fb108
56 changed files with 89 additions and 169 deletions
+1 -3
View File
@@ -198,7 +198,7 @@ static uint32_t gem_pin(int fd, int handle, int alignment)
return pin.offset;
}
int main(int argc, char **argv)
igt_simple_main
{
const uint32_t batch[2] = {MI_BATCH_BUFFER_END};
struct timeval start, now;
@@ -245,6 +245,4 @@ int main(int argc, char **argv)
gettimeofday(&now, NULL);
} while ((now.tv_sec - start.tv_sec)*1000 + (now.tv_usec - start.tv_usec) / 1000 < 10000);
igt_stop_signal_helper();
return 0;
}