mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 13:23:02 +00:00
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:
@@ -151,7 +151,7 @@ static void test_forking_evictions(int fd, int size, int count,
|
||||
int trash_count;
|
||||
|
||||
trash_count = intel_get_total_ram_mb() * 11 / 10;
|
||||
igt_require(intel_check_memory(trash_count, size, CHECK_RAM | CHECK_SWAP));
|
||||
intel_require_memory(trash_count, size, CHECK_RAM | CHECK_SWAP);
|
||||
|
||||
forking_evictions(fd, &fault_ops, size, count, trash_count, flags);
|
||||
}
|
||||
@@ -161,7 +161,7 @@ static void test_swapping_evictions(int fd, int size, int count)
|
||||
int trash_count;
|
||||
|
||||
trash_count = intel_get_total_ram_mb() * 11 / 10;
|
||||
igt_require(intel_check_memory(trash_count, size, CHECK_RAM | CHECK_SWAP));
|
||||
intel_require_memory(trash_count, size, CHECK_RAM | CHECK_SWAP);
|
||||
|
||||
swapping_evictions(fd, &fault_ops, size, count, trash_count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user