From 89026530405faa0828969b35b5c964330e856df4 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 30 Mar 2015 23:56:50 +0200 Subject: [PATCH] Extend CheckCleanWorkTree tests Signed-off-by: Sven Strickroth --- test/UnitTests/GitTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/UnitTests/GitTest.cpp b/test/UnitTests/GitTest.cpp index d0fef0208..b123fdd8e 100644 --- a/test/UnitTests/GitTest.cpp +++ b/test/UnitTests/GitTest.cpp @@ -901,6 +901,11 @@ TEST_P(CBasicGitWithEmptyRepositoryFixture, CheckCleanWorkTree) EXPECT_TRUE(CStringUtils::WriteStringToTextFile((LPCTSTR)testFile, L"this is ANOTHER testing file.")); EXPECT_TRUE(m_Git.CheckCleanWorkTree()); EXPECT_TRUE(m_Git.CheckCleanWorkTree(true)); + + EXPECT_EQ(0, m_Git.Run(_T("git.exe checkout --orphan orphanic"), &output, CP_UTF8)); + EXPECT_FALSE(output.IsEmpty()); + EXPECT_FALSE(m_Git.CheckCleanWorkTree()); + EXPECT_FALSE(m_Git.CheckCleanWorkTree(true)); } TEST(CGit, CEnvironment) -- 2.11.4.GIT