mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
lib: s/igt_env_set/igt_check_boolean_env_var
So I wasn't really happy with env_set since it's way too close to setenv(), whic actually _sets_ and environment variable. So use check instead of set as the verb (well adjective for env_set). Also sprinkle in some hints that we talk about a boolean setting here. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+1
-1
@@ -1111,7 +1111,7 @@ bool igt_run_in_simulation(void)
|
||||
static int simulation = -1;
|
||||
|
||||
if (simulation == -1)
|
||||
simulation = igt_env_set("INTEL_SIMULATION", false);
|
||||
simulation = igt_check_boolean_env_var("INTEL_SIMULATION", false);
|
||||
|
||||
return simulation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user