Commit 16d264e4 authored by Peter Steinbach's avatar Peter Steinbach

comparing the device name is optional

parent efda37c0
...@@ -39,7 +39,9 @@ TEST_CASE_METHOD( host_reference, "machine_specific" ){ ...@@ -39,7 +39,9 @@ TEST_CASE_METHOD( host_reference, "machine_specific" ){
auto value = compass::runtime::device_name(); auto value = compass::runtime::device_name();
REQUIRE(value.empty()!=true); if(expected_device_name.size() > 0){
REQUIRE(value.empty()!=true);}
REQUIRE_THAT(value, Catch::Matchers::Contains(expected_device_name) ); REQUIRE_THAT(value, Catch::Matchers::Contains(expected_device_name) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment