# # # patch "restrictions.cc" # from [0d8b88c022f6b67dd2d14fd32f80a4293bb1707b] # to [b10ad186ae15fd9d34b1b8ec63a8503a3c4a93d2] # ============================================================ --- restrictions.cc 0d8b88c022f6b67dd2d14fd32f80a4293bb1707b +++ restrictions.cc b10ad186ae15fd9d34b1b8ec63a8503a3c4a93d2 @@ -934,10 +934,10 @@ UNIT_TEST(restrictions, ignored_invalid_ excludes.push_back(file_path_internal("bar")); app_state app; - path_restriction(includes, excludes, -1, app, path_restriction::skip_check); + path_restriction pmask(includes, excludes, -1, app, path_restriction::skip_check); - UNIT_TEST_CHECK(pmask.includes(file_path_internal("foo"))); - UNIT_TEST_CHECK(pmask.excludes(file_path_internal("bar"))); + UNIT_TEST_CHECK( pmask.includes(file_path_internal("foo"))); + UNIT_TEST_CHECK(!pmask.includes(file_path_internal("bar"))); } UNIT_TEST(restrictions, include_depth_0)