Skip to content

Java unit testing can fail when upgrading project #589

@OccultSlolem

Description

@OccultSlolem

Describe the bug
Unit tests that passed with no problems in 2022.2.1 run into runtime errors in 2022.3.1. The exit code is 137 - a cursory glance of Stack Overflow appears to signify a memory problem. My 2020 Intel i5 MacBook Pro had at least 4 GB of RAM free when running these tests.

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to WPIlib 2022.3.1
  2. Attempt to run tests

Expected behavior
The tests should run successfully.

Screenshots
This video shows the tests passing on 2022.2.1, but failing on 2022.3.1 with no changes to the tests themselves:
https://sfsu.app.box.com/file/914364236999?s=93syty80quyeqtd58nc1t3qluy36phlt

Desktop (please complete the following information):

  • WPILib Version: 2022.3.1
  • OS: macOS Monterey 12.1
  • Java version 15.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions