Skip to content

fix(c-sdk): add error diagnostics to test_box_metrics integration test#334

Merged
DorianZheng merged 1 commit intomainfrom
fix/c-sdk-test-box-metrics-diagnostics
Mar 4, 2026
Merged

fix(c-sdk): add error diagnostics to test_box_metrics integration test#334
DorianZheng merged 1 commit intomainfrom
fix/c-sdk-test-box-metrics-diagnostics

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

The test_box_metrics test was failing with an opaque assertion (code == Ok) without printing the actual error details. This made it impossible to diagnose the root cause from CI output.

  • Check and print return codes from boxlite_execute calls
  • Print error code and message from boxlite_box_metrics before assert
  • Add fflush(stdout) to ensure output appears before abort()

The test_box_metrics test was failing with an opaque assertion
(code == Ok) without printing the actual error details. This made
it impossible to diagnose the root cause from CI output.

- Check and print return codes from boxlite_execute calls
- Print error code and message from boxlite_box_metrics before assert
- Add fflush(stdout) to ensure output appears before abort()
@DorianZheng DorianZheng merged commit b65bf14 into main Mar 4, 2026
4 checks passed
@DorianZheng DorianZheng deleted the fix/c-sdk-test-box-metrics-diagnostics branch March 4, 2026 00:24
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