diff --git a/tests/scripts/launch-floating-webapp.test.sh b/tests/scripts/launch-floating-webapp.test.sh index 3ecd277a..224a4356 100755 --- a/tests/scripts/launch-floating-webapp.test.sh +++ b/tests/scripts/launch-floating-webapp.test.sh @@ -43,4 +43,4 @@ mapfile -t args <"$HYPRCTL_ARGS" [[ ${args[0]} == *"workspace = '3', window = 'address:0xnew', follow = false"* ]] [[ ${args[1]} == *"action = 'enable', window = 'address:0xnew'"* ]] [[ ${args[2]} == *"x = 380, y = 500, window = 'address:0xnew'"* ]] -[[ ${args[3]} == *"x = 1520, y = 534, window = 'address:0xnew'"* ]] +[[ ${args[3]} == *"x = 1514, y = 534, window = 'address:0xnew'"* ]] diff --git a/tests/scripts/mise.test.sh b/tests/scripts/mise.test.sh index 712509be..ba9101d1 100755 --- a/tests/scripts/mise.test.sh +++ b/tests/scripts/mise.test.sh @@ -50,9 +50,18 @@ explicit_write=$(run_mise --write-global-config use -g gh@2.97.0) [[ $explicit_write == $'args=use -g gh@2.97.0\nglobal=' ]] ln -s /usr/bin/perl "$binary_bin/mise" +perl_script="$test_root/argv0.pl" +cat >"$perl_script" <<'PERL' +open(my $fh, '<', "/proc/$$/cmdline") or die $!; +local $/; +my $data = <$fh>; +close $fh; +my @args = split /\0/, $data; +print $args[0], "\n"; +PERL shim="$binary_bin/starship" ln -s "$mise_wrapper" "$shim" -shim_output=$(PATH="$binary_bin:/usr/bin" "$shim" -e 'print $0') +shim_output=$(PATH="$binary_bin:/usr/bin" "$shim" "$perl_script") [[ $shim_output == "$shim" ]] printf 'mise global config guard tests passed\n'