Lines Matching defs:rename
48 ATF_TC(rename);
49 ATF_TC_HEAD(rename, tc)
51 atf_tc_set_md_var(tc, "descr", "Checks rename(2)");
53 ATF_TC_BODY(rename, tc)
60 /* Check if rename to same name works as expected */
61 REQUIRE_LIBC(rename("t1", "t1"), -1);
66 REQUIRE_LIBC(rename("t1", "t2"), -1);
69 /* check if rename of hardlinked file works the BSD way */
70 ATF_REQUIRE_MSG(stat("t1", &sb) != 0, "BSD rename should remove file t1");
73 /* check if rename of hardlinked file works as the standard says */
78 ATF_REQUIRE_MSG(rename("no/such/file/or/dir", "no/such/file/or/dir") != 0,
86 ATF_TP_ADD_TC(tp, rename);