I was trying out unit testing on a robot with CTRE Talons/Victors, and am getting strange crashes as the test winds up, that do not happen with other motor types. Not sure if it’s a CTRE thing or a Mac thing, hoping some people can try this out for me.
My repo is https://github.com/swalberg/ctretest and you can switch between Talons and SparkMAXes in the https://github.com/swalberg/ctretest/blob/main/src/test/java/frc/robot/subsystems/MotorTest.java file. If I run the test with a Talon, I get
> Task :test FAILED HAL Extensions: No extensions found frc.robot.subsystems.MotorTest > dosomething PASSED libc++abi: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':test'. > Process 'Gradle Test Executor 3' finished with non-zero exit value 134 This problem might be caused by incorrect test process configuration. Please refer to the test execution section in the User Manual at https://docs.gradle.org/7.3.3/userguide/java_testing.html#sec:test_execution
If I use the REV motor:
> Task :test HAL Extensions: No extensions found frc.robot.subsystems.MotorTest > dosomething PASSED BUILD SUCCESSFUL in 1s 4 actionable tasks: 2 executed, 2 up-to-date
Hoping I can get someone to try it on Windows and Mac, since all I have here is the Mac.