Skip to content

Commit bb91937

Browse files
committed
fix build error and test
1 parent 2bd60c8 commit bb91937

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/pal/PAL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ namespace PAL_NS_BEGIN {
126126

127127
if (!pathExists || containsParentDirectory)
128128
{
129-
assert(false && "Invalid trace folder path.");
129+
std::cerr << "Invalid trace folder path." << std::endl;
130130
return false;
131131
}
132132

tests/unittests/PalTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class LogInitTest : public Test
153153
{
154154
// Create the valid path directory
155155
#if defined(_WIN32) || defined(_WIN64)
156-
CreateDirectoryA(validPath, NULL);
156+
CreateDirectoryA(validPath.c_str(), NULL);
157157
#else
158158
mkdir(validPath.c_str(), 0777);
159159
#endif
@@ -169,7 +169,7 @@ class LogInitTest : public Test
169169

170170
// Remove the valid path directory
171171
#if defined(_WIN32) || defined(_WIN64)
172-
RemoveDirectoryA(validPath);
172+
RemoveDirectoryA(validPath.c_str());
173173
#else
174174
rmdir(validPath.c_str());
175175
#endif

0 commit comments

Comments
 (0)