Skip to content
Snippets Groups Projects
Commit 000b8dc0 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Don't look at the real environment for driver_environment()


If one of the variables we are interested in happens to be set
already, and doesn't get overridden, then the test will fail.
For example, `DRI_PRIME=1 meson test -C _build` would fail.

This will become a lot more likely to happen when I start logging
ubiquitous environment variables like `DISPLAY`.

We can't just set envp = NULL initially, because g_environ_setenv()
in Ubuntu 12.04 won't accept NULL as a valid environment block (although
newer versions do).

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 5f239b57
No related branches found
No related tags found
1 merge request!231system-info: Record more environment variables
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment