Lines Matching refs:workload
25 TEST(workload, success) { in TEST() argument
30 auto workload = Workload::CreateWorkload({"sleep", "1"}); in TEST() local
31 ASSERT_TRUE(workload != nullptr); in TEST()
32 ASSERT_TRUE(workload->GetPid() != 0); in TEST()
33 ASSERT_TRUE(workload->Start()); in TEST()
37 TEST(workload, execvp_failure) { in TEST() argument
38 auto workload = Workload::CreateWorkload({"/dev/null"}); in TEST() local
39 ASSERT_TRUE(workload != nullptr); in TEST()
40 ASSERT_FALSE(workload->Start()); in TEST()
49 auto workload = Workload::CreateWorkload({"sleep", "10"}); in run_signaled_workload() local
50 ASSERT_TRUE(workload != nullptr); in run_signaled_workload()
51 ASSERT_TRUE(workload->Start()); in run_signaled_workload()
52 ASSERT_EQ(0, kill(workload->GetPid(), SIGKILL)); in run_signaled_workload()
59 TEST(workload, signaled_warning) { in TEST() argument
70 auto workload = Workload::CreateWorkload({"ls", "nonexistdir"}); in run_exit_nonzero_workload() local
71 ASSERT_TRUE(workload != nullptr); in run_exit_nonzero_workload()
72 ASSERT_TRUE(workload->Start()); in run_exit_nonzero_workload()
79 TEST(workload, exit_nonzero_warning) { in TEST() argument