Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a test for double-directory create.

Fixed typo in the documentation.
  • Loading branch information...
commit 976b268517192c6338bc86f85b5d5cd1f5dcbed7 1 parent 5b3c8c6
dblock authored
View
2  src/Common/File/FileImplUnitTests.cpp
@@ -222,6 +222,8 @@ void FileUnitTests::testDirectoryCreate()
std::wcout << std::endl << L"Creating: " << path1;
CPPUNIT_ASSERT(! AppSecInc::File::DirectoryExists(path1));
std::wstring path1_created = AppSecInc::File::DirectoryCreate(path1);
+ // shouldn't fail a second time and return blank (nothing new was created)
+ CPPUNIT_ASSERT(L"" == AppSecInc::File::DirectoryCreate(path1));
CPPUNIT_ASSERT(AppSecInc::File::DirectoryExists(path1));
CPPUNIT_ASSERT(path1 == path1_created);
// check that we can create two more levels
View
2  src/CustomActions/SystemTools/Win32Impl.h
@@ -54,7 +54,7 @@ CA_API UINT __stdcall Win32_DeleteFile(MSIHANDLE hInstall);
/*!
\brief Create a directory.
\param WIN32_PATH Fully qualified path to the directory to create; may contain several levels of directories to make.
-\return WIN32_PATH_CREATED Full qualified path that has been created first; this is the top level directory that didn't exist.
+\return WIN32_PATH_CREATED Fully qualified path that has been created first; this is the top level directory that didn't exist.
*/
CA_API UINT __stdcall Win32_CreateDirectory(MSIHANDLE hInstall);
Please sign in to comment.
Something went wrong with that request. Please try again.