Skip to content

Commit 4a189a0

Browse files
committed
test: Clear PKG_CONFIG_ALLOW_CROSS and FOO_NO_PKG_CONFIG environment variables
1 parent c99203e commit 4a189a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ static LOCK: StaticMutex = MUTEX_INIT;
1212
fn reset() {
1313
for (k, _) in env::vars() {
1414
if k.contains("DYNAMIC") ||
15-
k.contains("STATIC") {
15+
k.contains("STATIC") ||
16+
k.contains("PKG_CONFIG_ALLOW_CROSS") ||
17+
k.contains("FOO_NO_PKG_CONFIG") {
1618
env::remove_var(&k);
1719
}
1820
}

0 commit comments

Comments
 (0)