Skip to content

Conversation

@N1IOX
Copy link
Contributor

@N1IOX N1IOX commented Jan 15, 2026

As documented in the comments of PR 59 ( #59 ), one of the unit test cases has an issue, resulting in false negatives. This then prevents the automated workflow from succeeding.

Temporarily disable the one unit test: "Should fail to parse a corrupt buffer"
This test ultimately needs to be modified to ensure that it always results in the intended test outcome, perhaps by not relying on random data.

0neblock and others added 6 commits August 9, 2024 07:13
a length of exactly 256 should be encoded as:
0x82 0x01 0x00

without this change, I was seeing the encoded length of a get response (that happened to be exactly 256 bytes long) encoded as:
0x81 0x00

that was causing snmpbulkwalk to fail, since it was reading the encoded length as 0.
…it test cases has an issue, resulting in false negatives. This then prevents the automated workflow from succeeding.

***Temporarily*** disable the one unit test: "Should fail to parse a corrupt buffer"
This test needs to be modified to ensure that it always results in the intended test outcome, perhaps by not relying on random data.
Copy link
Owner

@0neblock 0neblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work Thanks!

}

SECTION( "Should fail to parse a corrupt buffer "){
/* SECTION( "Should fail to parse a corrupt buffer "){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the best approach for now. Thanks for this.

@0neblock 0neblock merged commit eed3ca0 into 0neblock:master Jan 15, 2026
1 check passed
@N1IOX N1IOX deleted the unit-test-itself-has-issue branch January 15, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants