Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messageBox.t not completing automatically under Tk Aqua 8.6.11 #25

Open
chrstphrchvz opened this issue May 1, 2022 · 1 comment
Open

Comments

@chrstphrchvz
Copy link
Owner

chrstphrchvz commented May 1, 2022

Tk Aqua issue 3ceb6b0f65 means that the approach of using a timer event to automatically end the test no longer works on Aqua at least since 8.6.12 (likely since 8.6.11).

Consider finding some other way to programmatically dismiss the message box (and also avoid relying on exit() due to #14).

@chrstphrchvz
Copy link
Owner Author

Not yet finding any good approaches for this. An AppleScript approach like:

system(<<"EOS") if ($top->windowingsystem eq 'aqua');
osascript -e '
  delay 1
  tell application "System Events"
    set proc to the first process whose unix id is $$
    set the frontmost of proc to true
    key code 53
  end tell
' &
EOS

is undesirable, because user permission is required for AppleScript and System Events access on recent macOS (and I am not aware of an exception to this where a parent process could explicitly allow itself to be controlled by a specific child process).

messageBox.t and various other tests with just ok(1) are currently only “smoke tests” to check for fatal errors, not whether everything actually works as expected. Terminating the process somehow could be good enough.

chrstphrchvz added a commit that referenced this issue May 15, 2022
chrstphrchvz added a commit that referenced this issue May 15, 2022
chrstphrchvz added a commit that referenced this issue May 16, 2022
@chrstphrchvz chrstphrchvz changed the title messageBox.t not completing automatically under Tk Aqua 8.6.12 messageBox.t not completing automatically under Tk Aqua 8.6.11 Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant