• Home
  • Raw
  • Download

Lines Matching refs:subcontext

56     auto subcontext = Subcontext("dummy_path", context_string);  in RunTest()  local
57 ASSERT_NE(0, subcontext.pid()); in RunTest()
59 test_function(subcontext, context_string); in RunTest()
61 if (subcontext.pid() > 0) { in RunTest()
62 kill(subcontext.pid(), SIGTERM); in RunTest()
63 kill(subcontext.pid(), SIGKILL); in RunTest()
67 TEST(subcontext, CheckDifferentPid) { in TEST() argument
68 RunTest([](auto& subcontext, auto& context_string) { in TEST() argument
69 auto result = subcontext.Execute(std::vector<std::string>{"return_pids_as_error"}); in TEST()
80 TEST(subcontext, SetProp) { in TEST() argument
81 RunTest([](auto& subcontext, auto& context_string) { in TEST() argument
90 auto result = subcontext.Execute(args); in TEST()
97 TEST(subcontext, MultipleCommands) { in TEST() argument
98 RunTest([](auto& subcontext, auto& context_string) { in TEST() argument
99 auto first_pid = subcontext.pid(); in TEST()
113 auto result = subcontext.Execute(args); in TEST()
117 auto result = subcontext.Execute(std::vector<std::string>{"return_words_as_error"}); in TEST()
120 EXPECT_EQ(first_pid, subcontext.pid()); in TEST()
124 TEST(subcontext, RecoverAfterAbort) { in TEST() argument
125 RunTest([](auto& subcontext, auto& context_string) { in TEST() argument
126 auto first_pid = subcontext.pid(); in TEST()
128 auto result = subcontext.Execute(std::vector<std::string>{"cause_log_fatal"}); in TEST()
131 auto result2 = subcontext.Execute(std::vector<std::string>{"generate_sane_error"}); in TEST()
134 EXPECT_NE(subcontext.pid(), first_pid); in TEST()
138 TEST(subcontext, ContextString) { in TEST() argument
139 RunTest([](auto& subcontext, auto& context_string) { in TEST() argument
140 auto result = subcontext.Execute(std::vector<std::string>{"return_context_as_error"}); in TEST()
146 TEST(subcontext, ExpandArgs) { in TEST() argument
147 RunTest([](auto& subcontext, auto& context_string) { in TEST() argument
153 auto result = subcontext.ExpandArgs(args); in TEST()
162 TEST(subcontext, ExpandArgsFailure) { in TEST() argument
163 RunTest([](auto& subcontext, auto& context_string) { in TEST() argument
168 auto result = subcontext.ExpandArgs(args); in TEST()