| 55 | |
| 56 | #ifdef _WIN32 |
| 57 | TEST(pc2pcTest, pc2pcTest_test_no_input) |
| 58 | { |
| 59 | std::string cmd = appName(); |
| 60 | cmd += " 2>&1"; // pdal outputs to both, stdout and stderr |
| 61 | |
| 62 | std::string output; |
| 63 | int stat = Utils::run_shell_command(cmd, output); |
| 64 | EXPECT_EQ(stat, 1); |
| 65 | |
| 66 | const std::string expected = "PDAL: kernels.translate: Missing value for positional argument 'input'."; |
| 67 | EXPECT_EQ(output.substr(0, expected.length()), expected); |
| 68 | } |
| 69 | #endif |
| 70 | |
| 71 |
nothing calls this directly
no test coverage detected