-
Notifications
You must be signed in to change notification settings - Fork 182
Add WhereDepth user preference to control depth of initial stack trace in break loops
#6261
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,3 +34,18 @@ gap> if false then Stabilizer; fi; | |
| Syntax error: found an expression when a statement was expected in stream:1 | ||
| if false then Stabilizer; fi; | ||
| ^ | ||
|
|
||
| # | ||
limakzi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # WhereDepth user preference | ||
| # | ||
| gap> UserPreference("WhereDepth"); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may fail if the user changed the preference
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It tests defaults.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it doesn't test default, it queries the current setting, which may or may not be the default value. On my computer it most likely will not be the default value 5 but rather something like 30 |
||
| 5 | ||
| gap> SetUserPreference("WhereDepth", 10); | ||
| gap> UserPreference("WhereDepth"); | ||
| 10 | ||
| gap> SetUserPreference("WhereDepth", 0); | ||
| gap> UserPreference("WhereDepth"); | ||
| 0 | ||
| gap> SetUserPreference("WhereDepth", 5); | ||
| gap> UserPreference("WhereDepth"); | ||
|
Comment on lines
+43
to
+50
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this really just testing the Instead, the place to test this ought to be in And that also reminds me of another issue: all those tests producing backtraces will break if the user running the test suite has a custom To solve this, |
||
| 5 | ||
Uh oh!
There was an error while loading. Please reload this page.