Skip to content

Commit

Permalink
weaked the requirement on finding the cache size as it's not so easy
Browse files Browse the repository at this point in the history
to find in VMs (e.g. used by appveyor)
  • Loading branch information
Peter Steinbach committed Apr 30, 2018
1 parent b0e196a commit 3be9d77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_build_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ TEST_CASE_METHOD( host_reference, "machine_specific" ){

auto value = compass::runtime::size::cache::level(2);

REQUIRE(value >> 10 ==expected_L2_size_kB);
REQUIRE(value > 0);
if(expected_L2_size_kB){
REQUIRE(value >> 10 ==expected_L2_size_kB);
}

}
}

0 comments on commit 3be9d77

Please sign in to comment.