Skip to content

printings added in hdr tests - #11475

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
remibettan:hdr_tests_debug_printings
Feb 23, 2023
Merged

printings added in hdr tests#11475
Nir-Az merged 1 commit into
realsenseai:developmentfrom
remibettan:hdr_tests_debug_printings

Conversation

@remibettan

Copy link
Copy Markdown
Contributor

Tracked by: LRS-233

@remibettan
remibettan requested a review from Nir-Az February 23, 2023 11:44
else
{
sequence_id = (sequence_id == 0) ? 1 : 0;
if (sequence_id != depth_seq_id)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You can use the catch2 integrated feature called TRACE.
e.g. https://github.com/IntelRealSense/librealsense/blob/b874e42685aed1269bc57a2fe5bf14946deb6ede/unit-tests/algo/thermal-loop/test-get-scale.cpp#L38

It will only print if next REQUIRE will fail, so no logic needed.

else if (iteration >= iteration_to_check_after_disable)
{
REQUIRE(frame_gain == gain_before_hdr);
if (frame_exposure != exposure_before_hdr)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same

@Nir-Az
Nir-Az merged commit 607ef67 into realsenseai:development Feb 23, 2023
@remibettan
remibettan deleted the hdr_tests_debug_printings branch July 29, 2025 14:09
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.

2 participants