NetBeans 12 + Pi4J 1.4: testscripts fail

22 views
Skip to first unread message

GeertVc

unread,
Aug 2, 2020, 8:43:06 AM8/2/20
to Pi4J
Today, I wanted to compile Pi4J branch develop/1.4, so I cloned the latest state of the Pi4J repo on GitHub.

Shortly after, I got the following errors popping up:

Running com.pi4j.io.gpio.test.GpioPinPwmOutputTests
Tests run: 17, Failures: 0, Errors: 17, Skipped: 0, Time elapsed: 0.015 s <<< FAILURE! - in com.pi4j.io.gpio.test.GpioPinPwmOutputTests
testPinInvalidModePovisioning(com.pi4j.io.gpio.test.GpioPinPwmOutputTests)  Time elapsed: 0.009 s  <<< ERROR!
com.pi4j.io.gpio.exception.InvalidPinModeException: Invalid pin mode [pwm_output]; unable to setPwm(2)
at com.pi4j.io.gpio.test.GpioPinPwmOutputTests.setup(GpioPinPwmOutputTests.java:59)

testPinProvisioned(com.pi4j.io.gpio.test.GpioPinPwmOutputTests)  Time elapsed: 0 s  <<< ERROR!
com.pi4j.io.gpio.exception.InvalidPinModeException: Invalid pin mode [pwm_output]; unable to setPwm(2)
at com.pi4j.io.gpio.test.GpioPinPwmOutputTests.setup(GpioPinPwmOutputTests.java:59)

Details: in GpioPinPwmOutputTests.java the setup fails (

Tests run: 17, Failures: 0, Errors: 17, Skipped: 0, Time elapsed: 0.015 s <<< FAILURE! - in com.pi4j.io.gpio.test.GpioPinPwmOutputTests
testPinInvalidModePovisioning(com.pi4j.io.gpio.test.GpioPinPwmOutputTests)  Time elapsed: 0.009 s  <<< ERROR!
com.pi4j.io.gpio.exception.InvalidPinModeException: Invalid pin mode [pwm_output]; unable to setPwm(2)
at com.pi4j.io.gpio.test.GpioPinPwmOutputTests.setup(GpioPinPwmOutputTests.java:59)

Not sure if other tests fail too, since I didn't get any further with this compilation "as is".

The only way to get everything compiled is to add the switch "-DskipTests" to the "Clean and Rebuild" command in NetBeans 12.

Is this issue known?
Reply all
Reply to author
Forward
0 new messages