mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
tests: don't just bail out when there's not enough RAM
... but actually run the test with reduced memory requirements, as the messages claims. Additional print it to stdout, stderr seems to imply FAIL in our QA's testing rig. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -191,8 +191,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if (count > intel_get_total_ram_mb() * 9 / 10) {
|
||||
count = intel_get_total_ram_mb() * 9 / 10;
|
||||
fprintf(stderr, "not enough RAM to run test, reducing buffer count\n");
|
||||
return 77;
|
||||
printf("not enough RAM to run test, reducing buffer count\n");
|
||||
}
|
||||
|
||||
printf("Using %d 1MiB buffers\n", count);
|
||||
|
||||
@@ -137,8 +137,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if (count > intel_get_total_ram_mb() * 9 / 10) {
|
||||
count = intel_get_total_ram_mb() * 9 / 10;
|
||||
fprintf(stderr, "not enough RAM to run test, reducing buffer count\n");
|
||||
return 77;
|
||||
printf("not enough RAM to run test, reducing buffer count\n");
|
||||
}
|
||||
|
||||
printf("Using %d 1MiB buffers\n", count);
|
||||
|
||||
@@ -112,8 +112,7 @@ int main(int argc, char **argv)
|
||||
count = 3 * gem_aperture_size(fd) / (1024*1024) / 2;
|
||||
if (count > intel_get_total_ram_mb() * 9 / 10) {
|
||||
count = intel_get_total_ram_mb() * 9 / 10;
|
||||
fprintf(stderr, "not enough RAM to run test, reducing buffer count\n");
|
||||
return 77;
|
||||
printf("not enough RAM to run test, reducing buffer count\n");
|
||||
}
|
||||
count |= 1;
|
||||
printf("Using %d 1MiB buffers\n", count);
|
||||
|
||||
Reference in New Issue
Block a user