lib/os: Pust igt_require into memory check function

More in line with the usual igt pattern and simplifies the code -
every called just wrapped it in igt_require.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
Daniel Vetter
2014-11-17 14:43:33 +01:00
parent aa63fc740c
commit a535cdedfb
10 changed files with 27 additions and 34 deletions
+2 -2
View File
@@ -268,7 +268,7 @@ int main(int argc, char **argv)
count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
igt_require(count > 1);
igt_require(intel_check_memory(count, sizeof(linear), CHECK_RAM));
intel_require_memory(count, sizeof(linear), CHECK_RAM);
run_test(fd, count);
}
@@ -279,7 +279,7 @@ int main(int argc, char **argv)
count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
igt_require(count > 1);
igt_require(intel_check_memory(count, sizeof(linear), CHECK_RAM));
intel_require_memory(count, sizeof(linear), CHECK_RAM);
igt_fork_signal_helper();
run_test(fd, count);
igt_stop_signal_helper();