summaryrefslogtreecommitdiff
blob: 47a3dad538b103bbb5cde093b423dd1227b4b362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests/which.c b/tests/which.c
index cda57c6..3e74867 100644
--- a/tests/which.c
+++ b/tests/which.c
@@ -21,6 +21,7 @@ int main(void)
 		{ NULL, 0 }
 	};
 
+	setenv("PATH", "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin", 1);
 	for (i = 0; test[i].cmd; i++) {
 		char *path;