| 444 | } |
| 445 | |
| 446 | bool testUVProcessChainNone(char const* helperCommand) |
| 447 | { |
| 448 | cmUVProcessChainBuilder builder; |
| 449 | std::unique_ptr<cmUVProcessChain> chain; |
| 450 | builder.AddCommand({ helperCommand, "echo" }) |
| 451 | .AddCommand({ helperCommand, "capitalize" }) |
| 452 | .AddCommand({ helperCommand, "dedup" }); |
| 453 | |
| 454 | if (!checkExecution(builder, chain)) { |
| 455 | return false; |
| 456 | } |
| 457 | |
| 458 | if (chain->OutputStream()) { |
| 459 | std::cout << "OutputStream() was valid, expecting invalid" << std::endl; |
| 460 | return false; |
| 461 | } |
| 462 | if (chain->ErrorStream()) { |
| 463 | std::cout << "ErrorStream() was valid, expecting invalid" << std::endl; |
| 464 | return false; |
| 465 | } |
| 466 | |
| 467 | return true; |
| 468 | } |
| 469 | |
| 470 | bool testUVProcessChainCwdUnchanged(char const* helperCommand) |
| 471 | { |
no test coverage detected
searching dependent graphs…