Lines Matching refs:workload
27 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()
47 auto workload = Workload::CreateWorkload({"sleep", "10"}); in run_signaled_workload() local
48 ASSERT_TRUE(workload != nullptr); in run_signaled_workload()
49 ASSERT_TRUE(workload->Start()); in run_signaled_workload()
50 ASSERT_EQ(0, kill(workload->GetPid(), SIGKILL)); in run_signaled_workload()
57 TEST(workload, signaled_warning) { in TEST() argument
66 auto workload = Workload::CreateWorkload({"ls", "nonexistdir"}); in run_exit_nonzero_workload() local
67 ASSERT_TRUE(workload != nullptr); in run_exit_nonzero_workload()
68 ASSERT_TRUE(workload->Start()); in run_exit_nonzero_workload()
75 TEST(workload, exit_nonzero_warning) { in TEST() argument