Launch 'ping' using the given capabilities and user.
| 53 | public: |
| 54 | // Launch 'ping' using the given capabilities and user. |
| 55 | Try<Subprocess> ping( |
| 56 | const set<Capability>& capabilities, |
| 57 | const Option<string>& user = None()) |
| 58 | { |
| 59 | CapabilitiesTestHelper helper; |
| 60 | |
| 61 | helper.flags.user = user; |
| 62 | helper.flags.capabilities = capabilities::convert(capabilities); |
| 63 | |
| 64 | vector<string> argv = { |
| 65 | "test-helper", |
| 66 | CapabilitiesTestHelper::NAME |
| 67 | }; |
| 68 | |
| 69 | return subprocess( |
| 70 | getTestHelperPath("test-helper"), |
| 71 | argv, |
| 72 | Subprocess::FD(STDIN_FILENO), |
| 73 | Subprocess::FD(STDOUT_FILENO), |
| 74 | Subprocess::FD(STDERR_FILENO), |
| 75 | &helper.flags); |
| 76 | } |
| 77 | }; |
| 78 | |
| 79 |
nothing calls this directly
no test coverage detected