Skip to content

Propagate ULog file writer I/O failures - #7

Open
xia-chao wants to merge 1 commit into
mainfrom
fix/ulog-writer-file-results
Open

xia-chao wants to merge 1 commit into
mainfrom
fix/ulog-writer-file-results

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Changes

  • Include the file and system error in open, write, flush, and sync failures.
  • Manage the file handle during construction and report example writer failures with a nonzero status.
  • Add tests for ordinary stream and synchronization failures.

Verification

  • Linux server CTest passed 4/4. Checked open failure, short write, buffered flush failure, and sync failure, plus the example exit status.
  • The example wrote and read back an ordinary recording with 100 samples. The Windows synchronization path was not run.

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