Skip to content

test: Improve error message when creating temporary file fails#253

Merged
kurtmcmillan merged 1 commit intodevelopfrom
kumcmill/improve-create-tempfile-error-message
Apr 7, 2026
Merged

test: Improve error message when creating temporary file fails#253
kurtmcmillan merged 1 commit intodevelopfrom
kumcmill/improve-create-tempfile-error-message

Conversation

@kurtmcmillan
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 7, 2026 16:59
@kurtmcmillan
Copy link
Copy Markdown
Collaborator Author

Before:

Could not create temporary file

After:

Could not create temporary file /mnt/ext4/test/hipFile.sWCCQL: Permission denied

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves diagnostics when mkstemp() fails during temporary file creation in tests by including the file template path and the underlying errno message.

Changes:

  • Capture errno on mkstemp() failure.
  • Include the temporary file path template and strerror(errno) in the thrown std::runtime_error.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kurtmcmillan kurtmcmillan force-pushed the kumcmill/improve-create-tempfile-error-message branch from b5ffd6d to 8b2d081 Compare April 7, 2026 17:53
@kurtmcmillan kurtmcmillan merged commit 2a6a7a1 into develop Apr 7, 2026
39 of 41 checks passed
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.

4 participants