Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printings added in hdr tests #11475

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions unit-tests/live/d400/test-hdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ TEST_CASE("HDR Streaming - checking sequence id", "[hdr][live][using_pipeline]")
else
{
sequence_id = (sequence_id == 0) ? 1 : 0;
if (sequence_id != depth_seq_id)
Copy link
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.

TRACE( "checking temp = " << temp_scale.first );

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

{
std::cout << "sequence_id != depth_seq_id" << std::endl;
std::cout << "iteration = " << iteration << ", iterations_for_preparation = " << iterations_for_preparation << std::endl;
}
REQUIRE(sequence_id == depth_seq_id);
REQUIRE(sequence_id == ir_seq_id);
}
Expand Down Expand Up @@ -746,6 +751,11 @@ TEST_CASE("HDR Start Stop - recover manual exposure and gain", "[HDR]")
else if (iteration >= iteration_to_check_after_disable)
{
REQUIRE(frame_gain == gain_before_hdr);
if (frame_exposure != exposure_before_hdr)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

{
std::cout << "frame_exposure != exposure_before_hdr" << std::endl;
std::cout << "iteration = " << iteration << ", iteration_to_check_after_disable = " << iteration_to_check_after_disable << std::endl;
}
REQUIRE(frame_exposure == exposure_before_hdr);
}
}
Expand Down