Lines Matching +full:0 +full:- +full:987
37 #include <atf-c++.hpp>
74 cli::cli_command("mock_error", "", 0, 0, "Mock command that crashes") in cmd_mock_crash()
107 cli::cli_command("mock_error", "", 0, 0, in cmd_mock_error()
139 "mock_write", "", 0, 0, "Mock command that prints output") in cmd_mock_write()
153 ui->out("stdout message from subcommand"); in run()
154 ui->err("stderr message from subcommand"); in run()
166 datetime::set_mock_now(2011, 2, 21, 21, 10, 30, 0); in ATF_TEST_CASE_BODY()
172 fs::path("/home/fake/.kyua/logs/progname1.20110221-211030.log"), in ATF_TEST_CASE_BODY()
180 datetime::set_mock_now(2011, 2, 21, 21, 10, 50, 987); in ATF_TEST_CASE_BODY()
185 ATF_REQUIRE_EQ(fs::path("/a/b/c/progname2.20110221-211050.log"), in ATF_TEST_CASE_BODY()
198 ATF_REQUIRE_EQ(fs::path("/tmp/progname3.20110221-211500.log"), in ATF_TEST_CASE_BODY()
245 datetime::set_mock_now(2011, 2, 21, 21, 30, 00, 0); in ATF_TEST_CASE_BODY()
253 ".kyua/logs/progname.20110221-213000.log"))); in ATF_TEST_CASE_BODY()
256 ".kyua/logs/progname.20110221-213000.log"))); in ATF_TEST_CASE_BODY()
268 const char* const argv[] = {"progname", "--logfile=test.log", NULL}; in ATF_TEST_CASE_BODY()
274 ".kyua/logs/progname.20110221-213000.log"))); in ATF_TEST_CASE_BODY()
286 const char* const argv[] = {"progname", "--logfile=test.log", NULL}; in ATF_TEST_CASE_BODY()
309 const char* const argv[] = {"progname", "--logfile=test.log", in ATF_TEST_CASE_BODY()
310 "--loglevel=debug", NULL}; in ATF_TEST_CASE_BODY()
333 const char* const argv[] = {"progname", "--logfile=test.log", in ATF_TEST_CASE_BODY()
334 "--loglevel=warning", NULL}; in ATF_TEST_CASE_BODY()
357 const char* const argv[] = {"progname", "--logfile=test.log", in ATF_TEST_CASE_BODY()
358 "--loglevel=i-am-invalid", NULL}; in ATF_TEST_CASE_BODY()
362 ATF_REQUIRE(atf::utils::grep_collection("Usage error.*i-am-invalid", in ATF_TEST_CASE_BODY()
382 ATF_REQUIRE_EQ("stdout message from subcommand", ui.out_log()[0]); in ATF_TEST_CASE_BODY()
384 ATF_REQUIRE_EQ("stderr message from subcommand", ui.err_log()[0]); in ATF_TEST_CASE_BODY()
463 fs::path("stderr.txt"))->wait(); in ATF_TEST_CASE_BODY()