Skip to content

Commit 2d632c9

Browse files
committed
🛠️ escape paths in std::system call to support spaces on all platforms
Signed-off-by: burgholzer <burgholzer@me.com>
1 parent 44aaa3b commit 2d632c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/qir/runner/test_qir_runner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ INSTANTIATE_TEST_SUITE_P(
3131
TEST_P(QIRRunnerTest, QIRFile) {
3232
const auto& file = GetParam();
3333
std::ostringstream command;
34-
command << EXECUTABLE_PATH << " " << file;
34+
command << "\"" << EXECUTABLE_PATH << "\" \"" << file << "\"";
3535
const auto result = std::system(command.str().c_str());
3636
EXPECT_EQ(result, 0);
3737
}

0 commit comments

Comments
 (0)