Skip to content

Release v0.2.3, add tests, and fflush - #39

Merged
l5yth merged 3 commits into
mainfrom
l5y-release-v0.2.3
Aug 31, 2026
Merged

l5yth merged 3 commits into
mainfrom
l5y-release-v0.2.3

Conversation

@l5yth

@l5yth l5yth commented Aug 31, 2026 •

Copy link
Copy Markdown
Owner

PR #38 added the setvbuf(_IOLBF) call in SimSerial's constructor but no test. Codecov reported full patch coverage only because the global Serial instance is constructed at static init, so the line executes without ever being asserted - a regression would ship green.

flush() was a no-op documented as "stdout is unbuffered at this level", which was untrue even before #38 and is plainly untrue now that the constructor sets _IOLBF. A completed line leaves on its newline, but a partial one - a prompt, a progress counter, Serial.print() with no trailing newline -- sat in the buffer until the next newline or exit.

Arduino's contract for flush() is "wait for outgoing data to be transmitted", so call fflush(stdout).

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@l5yth l5yth changed the title Release v0.2.3 Release v0.2.3, add tests, and fflush Aug 31, 2026
@l5yth
l5yth merged commit c743948 into main Aug 31, 2026
3 checks passed
@l5yth
l5yth deleted the l5y-release-v0.2.3 branch August 31, 2026 10:28
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