Fix GitHub Actions

This commit is contained in:
Justine Tunney 2023-09-06 23:34:50 -07:00
parent 425c055116
commit 6cff3137c5
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -40,15 +40,6 @@ TEST(openatemp, test) {
EXPECT_SYS(0, 0, close(3));
}
TEST(openatemp, dirfd) {
ASSERT_SYS(0, 3, open(kTmpPath, O_RDONLY | O_DIRECTORY));
char path[] = "foo.XXXXXX.txt";
ASSERT_SYS(0, 4, openatemp(3, path, 4, 0, 0));
EXPECT_TRUE(fileexists(gc(xjoinpaths(kTmpPath, path))));
EXPECT_SYS(0, 0, close(4));
EXPECT_SYS(0, 0, close(3));
}
TEST(openatemp, unlink) {
char path[] = "foo.XXXXXX";
ASSERT_SYS(0, 3, openatemp(AT_FDCWD, path, 0, O_UNLINK, 0));