Skip to content

Commit

Permalink
Fix TestFileOperationJob.ActionCreateFolder test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
amejia1 committed Sep 16, 2012
1 parent a68f71f commit eb89570
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xbmc/utils/test/TestFileOperationJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,16 @@ TEST(TestFileOperationJob, ActionCreateFolder)
ASSERT_TRUE((tmpfile = XBMC_CREATETEMPFILE("")));
tmpfilepath = XBMC_TEMPFILEPATH(tmpfile);

CFileItemPtr item(new CFileItem(tmpfilepath));
item->SetPath(tmpfilepath);
item->m_bIsFolder = false;
item->Select(true);
items.Add(item);

destpath = tmpfilepath;
destpath += ".createfolder";
ASSERT_FALSE(XFILE::CFile::Exists(destpath));

CFileItemPtr item(new CFileItem(destpath));
item->SetPath(destpath);
item->m_bIsFolder = true;
item->Select(true);
items.Add(item);

job.SetFileOperation(CFileOperationJob::ActionCreateFolder, items, destpath);
EXPECT_EQ(CFileOperationJob::ActionCreateFolder, job.GetAction());

Expand Down

0 comments on commit eb89570

Please sign in to comment.