-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add a test ensuring a Hash iterator misuse is not exploding #731
base: main
Are you sure you want to change the base?
Conversation
t/nqp/108-vmhash.t
Outdated
} | ||
} | ||
|
||
ok($msg eq "", 'No SEGV on a misused hash iterator'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing $msg
being changed? Is that just to create a valid ok
test? If that was the intent, you can also say:
pass 'No SEGV on a misused hash iterator'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, my bad as I did not add $msg = ...
bit into CATCH, huh.
Also, given it is not directly an exception, but a SEGV is maybe a better option, let's see...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is apparently no pass
in nqp, so just corrected the bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Altai-man: It looks like the test actually checks for both no SEGV (by happening at all) and no exception (by leaving $msg
unchanged). Might be worth changing the test description to match that.
a19e355
to
98f38a4
Compare
The test failures seem to be flappers. :( |
Closes rakudo/rakudo#1340 (aims to)
I am really not sure where the nqp integration tests should belong, but this appears like the most fitting place to me, please check those with wisdom.