Skip to content

unittests: fix failed assertion caused by priority_pktqueue#8259

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
smlng:fix/unittests/priority_pktqueue
Dec 14, 2017
Merged

unittests: fix failed assertion caused by priority_pktqueue#8259
miri64 merged 1 commit intoRIOT-OS:masterfrom
smlng:fix/unittests/priority_pktqueue

Conversation

@smlng
Copy link
Copy Markdown
Member

@smlng smlng commented Dec 13, 2017

Contribution description

Failed assertion due to wrong usage in unittest, was discovered in #8080

Issues/PRs references

fixes a failed assertion in gnrc_packet_buf caused by the priority_pktqueue unites. The assertion fails because the tests calls flush on the queue which removes all nodes and associated packet_snips assuming these snips are in the packet but which they weren't for the test case.

@smlng smlng added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: tests Area: tests and testing framework labels Dec 13, 2017
@smlng smlng added this to the Release 2018.01 milestone Dec 13, 2017
@smlng smlng requested review from miri64 and zhuoshuguo December 13, 2017 20:57
@smlng smlng force-pushed the fix/unittests/priority_pktqueue branch from 2603526 to 412027f Compare December 13, 2017 20:59
@smlng smlng added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Dec 13, 2017
@smlng smlng force-pushed the fix/unittests/priority_pktqueue branch from 412027f to 91667b0 Compare December 13, 2017 21:11
@smlng smlng force-pushed the fix/unittests/priority_pktqueue branch from 91667b0 to 2149411 Compare December 13, 2017 21:26
@zhuoshuguo
Copy link
Copy Markdown
Contributor

Tested, and looks OK to me. ACK.

Copy link
Copy Markdown
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

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

Proxy-ACK&Go.

@miri64 miri64 merged commit f738cd2 into RIOT-OS:master Dec 14, 2017
@smlng smlng deleted the fix/unittests/priority_pktqueue branch February 6, 2018 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants