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

TestUp hiding crashes? #127

Open
thomthom opened this issue Apr 3, 2018 · 3 comments
Open

TestUp hiding crashes? #127

thomthom opened this issue Apr 3, 2018 · 3 comments
Labels

Comments

@thomthom
Copy link
Member

thomthom commented Apr 3, 2018

def test_initialize_negative_num_points
# Expected this to fail since creating a polygon mesh with negative points
# does not make sense.
polygonmesh = Geom::PolygonMesh.new(-1)
assert_kind_of(Geom::PolygonMesh, polygonmesh)
end

This crashes SU when run from the Ruby Console:

polygonmesh = Geom::PolygonMesh.new(-1)

But when run from TestUp's dialog it doesn't. The Wait cursor appears, but eventually it's possible to click. Looks like the access violation is being swallowed for some reason - not sure why.

Needs investigation. Better to crash than to end up in a weird state like this.

@thomthom thomthom added the bug label Apr 3, 2018
@MSP-Greg
Copy link
Contributor

MSP-Greg commented Apr 6, 2018

Odd. I had this skipped in SUMT with

skip("Fix this, Bug Splat!") if SU_VERS_INT < 19

When I remove that, it Bug Splats, and the UDP reporter stops on that test. Whether the whole file is run or just that test...

If you want to check, after setup, comment out the skip, run udp_receiver.rb from a command prompt, and the following in the Ruby console -

Whole File
SUMT.run f:%w[geom/TC_PolygonMesh.rb], gu:true

Single Test
SUMT.run f:%w[geom/TC_PolygonMesh.rb], n:'test_initialize_negative_num_points', gu:true

@thomthom
Copy link
Member Author

thomthom commented Apr 6, 2018

Yea, I'm not sure what is going on. I suspect there is some oddness with the webdialog that interfere... It consistently crash with not run from within TestUp.

@MSP-Greg
Copy link
Contributor

Been AFK for several days. I also have a Bug Splat on

  def test_initialize_negative_num_polygons
    # Expected this to fail since creating a polygon mesh with negative number
    # of polygons sounds a bit odd.
#    skip("Fix this, Bug Splat!") if SU_VERS_INT < 19
    polygonmesh = Geom::PolygonMesh.new(4, -2)
    assert_kind_of(Geom::PolygonMesh, polygonmesh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants