From afeeb97f056f13d1bc7837875a7964ed7bc9f139 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 24 Oct 2024 08:10:46 -0500 Subject: [PATCH] refactor --- repertory/repertory_test/src/winfsp_drive_test.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/repertory/repertory_test/src/winfsp_drive_test.cpp b/repertory/repertory_test/src/winfsp_drive_test.cpp index 27fef111..b84abb9d 100644 --- a/repertory/repertory_test/src/winfsp_drive_test.cpp +++ b/repertory/repertory_test/src/winfsp_drive_test.cpp @@ -228,11 +228,14 @@ TYPED_TEST(winfsp_test, run_winfsp_tests) { "--resilient", }; - auto res = system((utils::path::combine(test::get_project_input_dir(), - {"bin", "winfsp-tests-x64.exe"}) + - ' ' + utils::string::join(test_options, ' ')) - .c_str()); - EXPECT_EQ(0, res); + auto test_exec = utils::path::combine(test::get_project_input_dir(), + { + "bin", + "winfsp-tests-x64.exe", + }) + + ' ' + utils::string::join(test_options, ' '); + + EXPECT_EQ(0, system(test_exec.c_str())); std::filesystem::current_path(cur); }