Skip to content

Commit

Permalink
test error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmeow committed Nov 13, 2024
1 parent f697281 commit 69c6f8c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions toolchain/install/busybox_info_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,20 @@ TEST_F(BusyboxInfoTest, RelativeSymlink) {
EXPECT_THAT(info->mode, Eq("carbon"));
}

TEST_F(BusyboxInfoTest, NotBusyboxFile) {
auto target = MakeFile(dir_ / "file");

auto info = GetBusyboxInfo(target.string());
EXPECT_FALSE(info.ok());
}

TEST_F(BusyboxInfoTest, NotBusyboxSymlink) {
MakeFile(dir_ / "file");
auto target = MakeSymlink(dir_ / "carbon", "file");

auto info = GetBusyboxInfo(target.string());
EXPECT_FALSE(info.ok());
}

} // namespace
} // namespace Carbon

0 comments on commit 69c6f8c

Please sign in to comment.