Skip to content

Conversation

amstokely
Copy link
Contributor

No description provided.

Andy Stokely and others added 20 commits August 8, 2025 16:12
Unit tests were added for the mpas_stream_list module, covering stream list
creation, insertion, querying, and removal. The tests fail when inserting
duplicate streams adjacent to each other, either as the first or last stream
in the list. The bug is in the MPAS_stream_list_insert subroutine in the
mpas_stream_list module, which does not correctly handle duplicates in these
cases.
The original code allowed adjacent duplicate streams to be inserted into the
list, which caused incorrect behavior when adding a duplicate stream next to an
existing one. The bug was fixed by updating the insertion logic to properly
reject adjacent duplicate streams. The new code checks for duplicates during
insertion and prevents adding the stream if it is already in the list, even if
adjacent. The mpas_test_insert_duplicate_at_begin and
mpas_test_insert_duplicate_at_end tests in the mpas_stream_list test suite
confirm that these changes fix the bug.
…tream variable, and added list length checks for each stream insertion op in mpas_test_list_length.
Created a test that tests removing a stream at the beginning, middle, and end of a mpas_stream_list object.
Created a test that tests removing a stream at the beginning, middle, and end of a mpas_stream_list object.
…ams at the beginning and end of a list. Also nullified 'found' stream.
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.

1 participant