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

More minor test-case updates #192

Merged
merged 7 commits into from
Feb 3, 2025
Merged

More minor test-case updates #192

merged 7 commits into from
Feb 3, 2025

Conversation

skx
Copy link
Owner

@skx skx commented Feb 2, 2025

This pull-request adds a new configuration option "pause-on-newlines" which allows automatic delays on newlines, which helps for some of our test cases.

For example mbasic2.in contains:

  30 NEXT I
  LIST
  RUN

If we let the LIST run it will poll for keyboard input to see if it should react to Ctrl-C, or similar, and that will swallow pending input. So we have to pause/pretend there is no input until that completes.

But adding "#LIST\n#RUN" or similar feels fragile and confusing.

Pausing after every newline will make things simpler.

skx added 7 commits February 2, 2025 20:53
This pull-request adds a new configuration option "pause-on-newlines"
which allows automatic delays on newlines, which helps for some of
our test cases.

For example `mbasic2.in` contains:

```
  30 NEXT I
  LIST
  RUN
```

If we let the `LIST` run it will poll for keyboard input to see if
it should react to Ctrl-C, or similar, and that will swallow pending
input.  So we have to pause/pretend there is no input until that
completes.

But adding "`#LIST\n#RUN`" or similar feels fragile and confusing.

Pausing after every newline will make things simpler.
@skx skx merged commit b32bff9 into master Feb 3, 2025
2 checks passed
@skx skx deleted the testing/updates branch February 3, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant