diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-11 17:07:26 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-12 11:37:28 +0200 |
commit | 88648205e3a884e04362a502b1793a2cd3f8ab83 (patch) | |
tree | f2b4b7111968eef5203de736cf012b90de2b3a46 /tests/gem_shrink.c | |
parent | d7050f9f79fee8fb7c790f355c984d9e5141e1c5 (diff) |
lib/igt_aux: Polish docs for igt_timeout
Add docs, rename parameter and rename the macro to igt_do_timeout to
make it clear it works like a loop.
v2: Rename instead to igt_until_timeout (Chris).
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/gem_shrink.c')
-rw-r--r-- | tests/gem_shrink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_shrink.c b/tests/gem_shrink.c index eeba89ed..56bf714a 100644 --- a/tests/gem_shrink.c +++ b/tests/gem_shrink.c @@ -231,7 +231,7 @@ static void run_test(int nchildren, uint64_t alloc, /* Background load */ if (flags & OOM) { igt_fork(child, nchildren) { - igt_timeout(timeout) { + igt_until_timeout(timeout) { int fd = drm_open_driver(DRIVER_INTEL); for (int pass = 0; pass < nchildren; pass++) leak(fd, alloc); @@ -243,7 +243,7 @@ static void run_test(int nchildren, uint64_t alloc, if (flags & USERPTR) { igt_require(has_userptr()); igt_fork(child, (nchildren + 1)/2) { - igt_timeout(timeout) { + igt_until_timeout(timeout) { int fd = drm_open_driver(DRIVER_INTEL); for (int pass = 0; pass < nchildren; pass++) userptr(fd, alloc); @@ -255,7 +255,7 @@ static void run_test(int nchildren, uint64_t alloc, /* Exercise major ioctls */ igt_fork(child, nchildren) { - igt_timeout(timeout) { + igt_until_timeout(timeout) { int fd = drm_open_driver(DRIVER_INTEL); for (int pass = 0; pass < nchildren; pass++) func(fd, alloc); |