aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-10 14:52:08 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-10 14:52:08 +0100
commit1972903cd360269d807af9d4b4f7bd45ddf00981 (patch)
tree999f55bb145785ce34280d56acb108fce0542c9c
parentfa4ad9ce271f981aca98f77c42d3e8d20eea44bb (diff)
downloadpaludis-1972903cd360269d807af9d4b4f7bd45ddf00981.tar.gz
paludis-1972903cd360269d807af9d4b4f7bd45ddf00981.tar.xz
Test that symlinks are installed as symlinks
-rw-r--r--paludis/repositories/e/e_repository_TEST_pbin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_repository_TEST_pbin.cc b/paludis/repositories/e/e_repository_TEST_pbin.cc
index 948272a..8667ee0 100644
--- a/paludis/repositories/e/e_repository_TEST_pbin.cc
+++ b/paludis/repositories/e/e_repository_TEST_pbin.cc
@@ -293,5 +293,9 @@ TEST(Symlinks, Works)
EXPECT_TRUE((root / ("symlinks-a")).stat().exists());
EXPECT_TRUE((root / ("symlinks-b")).stat().exists());
EXPECT_TRUE((root / ("symlinks-c")).stat().exists());
+
+ EXPECT_TRUE((root / ("symlinks-a")).stat().is_symlink());
+ EXPECT_TRUE((root / ("symlinks-b")).stat().is_regular_file());
+ EXPECT_TRUE((root / ("symlinks-c")).stat().is_symlink());
}