Lines Matching defs:hostname
71 ATF_TC(hostname);
72 ATF_TC_HEAD(hostname, tc)
75 atf_tc_set_md_var(tc, "descr", "/kern/hostname changes hostname");
95 ATF_TC_BODY(hostname, tc)
102 if ((fd = rump_sys_open("/kern/hostname", O_RDWR)) == -1)
103 atf_tc_fail_errno("open hostname");
109 atf_tc_fail_errno("read hostname");
113 ATF_REQUIRE_STREQ_MSG(buf, shost, "initial hostname mismatch");
115 /* check changing hostname works */
118 atf_tc_fail_errno("write new hostname");
122 ATF_REQUIRE_STREQ_MSG(NEWHOSTNAME, shost, "modified hostname mismatch");
129 ATF_TP_ADD_TC(tp, hostname);