MCPcopy Create free account
hub / github.com/ceph/ceph / TEST

Function TEST

src/test/test_subprocess.cc:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46TEST(SubProcess, True)
47{
48 SubProcess p("true");
49 ASSERT_EQ(p.spawn(), 0);
50 ASSERT_EQ(p.join(), 0);
51 ASSERT_TRUE(p.err().c_str()[0] == '\0');
52}
53
54TEST(SubProcess, False)
55{

Callers

nothing calls this directly

Calls 15

read_from_fdFunction · 0.85
fork_functionFunction · 0.85
writeFunction · 0.50
spawnMethod · 0.45
joinMethod · 0.45
c_strMethod · 0.45
errMethod · 0.45
get_stderrMethod · 0.45
add_cmd_argsMethod · 0.45
get_stdoutMethod · 0.45
get_stdinMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected