From bc22588895834760c750e7ec75a7ae09ecdd58ea Mon Sep 17 00:00:00 2001 From: FrancisANDRE Date: Tue, 5 Jan 2016 05:20:40 +0100 Subject: [PATCH] .bashrc exists only with bash shell while .profile exists always Signed-off-by: FrancisANDRE --- Foundation/testsuite/src/PathTest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Foundation/testsuite/src/PathTest.cpp b/Foundation/testsuite/src/PathTest.cpp index 2e5c563c2..a601e8067 100644 --- a/Foundation/testsuite/src/PathTest.cpp +++ b/Foundation/testsuite/src/PathTest.cpp @@ -1511,15 +1511,15 @@ void PathTest::testForDirectory() void PathTest::testExpand() { #if defined(POCO_OS_FAMILY_UNIX) - std::string s = Path::expand("~/.bashrc"); - assert (s == Path::expand("$HOME/.bashrc")); - assert (s == Environment::get("HOME") + "/.bashrc" || - s == Environment::get("HOME") + "//.bashrc"); + std::string s = Path::expand("~/.profile"); + assert (s == Path::expand("$HOME/.profile")); + assert (s == Environment::get("HOME") + "/.profile" || + s == Environment::get("HOME") + "//.profile"); Path p(s); - s = Path::expand("$HOME/.bashrc"); - assert (s == Path::expand("~/.bashrc")); - s = Path::expand("${HOME}/.bashrc"); - assert (s == Path::expand("~/.bashrc")); + s = Path::expand("$HOME/.profile"); + assert (s == Path::expand("~/.profile")); + s = Path::expand("${HOME}/.profile"); + assert (s == Path::expand("~/.profile")); #elif defined(POCO_OS_FAMILY_WINDOWS) std::string s = Path::expand("%TMP%\\foo"); assert (s == Environment::get("TMP") + "\\foo");