diff --git a/tests/vision_test.cpp b/tests/vision_test.cpp index 25d6983ca437c..83dd4ba3a4a86 100644 --- a/tests/vision_test.cpp +++ b/tests/vision_test.cpp @@ -283,13 +283,16 @@ struct vision_test_case { } void test_all() const { - INFO( "using 3d casting" ); - fov_3d = true; - test_all_transformations(); - - INFO( "using 2d casting" ); - fov_3d = false; - test_all_transformations(); + { + INFO( "using 3d casting" ); + fov_3d = true; + test_all_transformations(); + } + { + INFO( "using 2d casting" ); + fov_3d = false; + test_all_transformations(); + } } };