Closed kkaempf closed 10 months ago
@rdmark frankly, I'm at loss with fixing the tests :-( Is there any documentation ?
@kkaempf The closest we have to documentation is the issue ticket where the tests were initially introduced! https://github.com/PiSCSI/piscsi/issues/794
Running the tests should be as easy as installing the googletest libraries, and then running make test
. You can also see the failing CI jobs here in this PR.
The actual test code should be fairly self-explanatory I think, but let me know if you need further pointers ;)
The test output is quite unhelpful 😞
[ RUN ] ScsiCommandUtilTest.ModeSelect6
unknown file: Failure
C++ exception with description "std::exception" thrown in the test body.
[ FAILED ] ScsiCommandUtilTest.ModeSelect6 (0 ms)
Tests fixed (somewhat hackish imho)
@kkaempf What makes you say the tests are hackish?
@kkaempf What makes you say the tests are hackish?
I can't say (yet ?) that I actually know what I'm doing there 🙈
This should be complete now I believe.
Rebasing with the develop
branch. This is where all new code goes. We then rebase with main
after each stable release.
Kudos, no new issues were introduced!
0 New issues
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code
This PR covers multiple issues
The DEC Alpha SRM console (aka BIOS) calls ModeSelect6 with no payload
OpenVMS Alpha calls ModeSelect6 with a page code of 1
ModeSelect had an off-by-one error in computing the length
Fixes #1402