tests: modify $PATH so that it prefers the compiled versions of everything in ../

This commit is contained in:
Michael Stapelberg 2011-10-20 19:02:08 +01:00
parent ad0f13a0a9
commit ab2d96ba48
1 changed files with 8 additions and 0 deletions

View File

@ -54,6 +54,14 @@ sub activate_i3 {
$ENV{LISTEN_PID} = $$;
$ENV{LISTEN_FDS} = 1;
$ENV{DISPLAY} = $args{display};
$ENV{PATH} = join(':',
'../i3-nagbar',
'../i3-msg',
'../i3-config-wizard',
'../i3bar',
'..',
$ENV{PATH}
);
# Only pass file descriptors 0 (stdin), 1 (stdout), 2 (stderr) and
# 3 (socket) to the child.
$^F = 3;