Skip to content

Commit da279e4

Browse files
committed
🏁 try std::system on Windows as well
Signed-off-by: burgholzer <burgholzer@me.com>
1 parent 6a40a4a commit da279e4

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

test/qir/runner/test_qir_runner.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
#include <gtest/gtest.h>
1414
#include <sstream>
1515

16-
#ifdef _WIN32
17-
#define SYSTEM _wsystem
18-
#else
19-
#define SYSTEM std::system
20-
#endif
21-
2216
namespace qir {
2317
class QIRRunnerTest : public testing::TestWithParam<std::filesystem::path> {};
2418

@@ -38,7 +32,7 @@ TEST_P(QIRRunnerTest, QIRFile) {
3832
const auto& file = GetParam();
3933
std::ostringstream command;
4034
command << EXECUTABLE_PATH << " " << file;
41-
const auto result = SYSTEM(command.str().c_str());
35+
const auto result = std::system(command.str().c_str());
4236
EXPECT_EQ(result, 0);
4337
}
4438
} // namespace qir

0 commit comments

Comments
 (0)