test: set PIPEWIRE_REMOTE to a garbage value if we didn't start a test daemon

Don't let tests connect to the system daemon which would happen if we don't
have PIPEWIRE_REMOTE set at all.
This commit is contained in:
Peter Hutterer 2021-06-04 09:51:55 +10:00
parent e01faf42a1
commit 2073269f47
2 changed files with 8 additions and 1 deletions

View file

@ -185,6 +185,8 @@ PWTEST(default_env_test)
{
/* This one is set automatically */
pwtest_str_eq(getenv("PWTEST"), "1");
/* Default value */
pwtest_str_eq(getenv("PIPEWIRE_REMOTE"), "test-has-no-daemon");
return PWTEST_PASS;
}