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

Fix some issues with new tests locking in bug fixes #17320

Merged
merged 1 commit into from Mar 3, 2021

Conversation

bradcray
Copy link
Member

@bradcray bradcray commented Mar 3, 2021

  • I did not think to run memleaks testing on these tests, and hadn't
    realized that they hadn't freed their unmanaged classes. Do so here.

  • There was a portability issue on linux32 due to casting a c_void_ptr
    to a 64-bit integer. I've rewritten the test to avoid the cast, which
    I believe should resolve the issue, and via inspection of the generated
    code it seems to. That said, due to a lack of time today, I haven't
    had the chance to run the test on linux32, so am relying on the nightly
    run to do that where, if I haven't fixed it, there shouldn't be any new
    noise.

I did not think to run memleaks testing on these tests, and hadn't
realized that they hadn't freed their unmanaged classes.  Do so here.

There was a portability issue on linux32 due to casting a c_void_ptr
to a 64-bit integer.  I've rewritten the test to avoid the cast, which
I believe should resolve the issue (but in the interest of time am
relying on the nightly testing to run on linux32 rather than doing it
myself; it passes on linux64 and seems like it should resolve the
lines of code in question).

---
Signed-off-by: Brad Chamberlain <bradcray@users.noreply.github.com>
@bradcray bradcray changed the title Fix some issues with these new tests that showed up last night Fix some issues with new tests locking in bug fixes Mar 3, 2021
@bradcray bradcray merged commit d340d47 into chapel-lang:master Mar 3, 2021
@bradcray bradcray deleted the fix-new-test-leaks-linux32 branch March 3, 2021 02:05
e-kayrakli added a commit that referenced this pull request Mar 4, 2021
Add memory leak annotations

Annotates the following PRs that changed memory leaks:

- This PR added a test that exercised a Regexp code that we have never before
  and that leaks:

  #17245

  (This is resolved today)

- New leaky tests:

  #17291

  - That were resolved by:

    #17320

[Trivial, not reviewed]
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.

None yet

1 participant