summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/file_io/GetTempPathW/test1
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/file_io/GetTempPathW/test1')
-rw-r--r--src/pal/tests/palsuite/file_io/GetTempPathW/test1/CMakeLists.txt2
-rw-r--r--src/pal/tests/palsuite/file_io/GetTempPathW/test1/GetTempPathW.cpp (renamed from src/pal/tests/palsuite/file_io/GetTempPathW/test1/GetTempPathW.c)6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pal/tests/palsuite/file_io/GetTempPathW/test1/CMakeLists.txt b/src/pal/tests/palsuite/file_io/GetTempPathW/test1/CMakeLists.txt
index f2979e9..04b2409 100644
--- a/src/pal/tests/palsuite/file_io/GetTempPathW/test1/CMakeLists.txt
+++ b/src/pal/tests/palsuite/file_io/GetTempPathW/test1/CMakeLists.txt
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES
- GetTempPathW.c
+ GetTempPathW.cpp
)
add_executable(paltest_gettemppathw_test1
diff --git a/src/pal/tests/palsuite/file_io/GetTempPathW/test1/GetTempPathW.c b/src/pal/tests/palsuite/file_io/GetTempPathW/test1/GetTempPathW.cpp
index 08c8807..bf997de 100644
--- a/src/pal/tests/palsuite/file_io/GetTempPathW/test1/GetTempPathW.c
+++ b/src/pal/tests/palsuite/file_io/GetTempPathW/test1/GetTempPathW.cpp
@@ -13,7 +13,7 @@
#include <palsuite.h>
-static void SetTmpDir(WCHAR path[])
+static void SetTmpDir(const WCHAR path[])
{
DWORD result = SetEnvironmentVariableW(W("TMPDIR"), path);
if (!result)
@@ -23,7 +23,7 @@ static void SetTmpDir(WCHAR path[])
}
}
-static void SetAndCompare(WCHAR tmpDirPath[], WCHAR expected[])
+static void SetAndCompare(const WCHAR tmpDirPath[], const WCHAR expected[])
{
DWORD dwBufferLength = _MAX_DIR;
WCHAR path[dwBufferLength];
@@ -49,7 +49,7 @@ static void SetAndCompare(WCHAR tmpDirPath[], WCHAR expected[])
}
}
-static void SetAndCheckLength(WCHAR tmpDirPath [], int bufferLength, int expectedResultLength)
+static void SetAndCheckLength(const WCHAR tmpDirPath [], int bufferLength, int expectedResultLength)
{
WCHAR path[bufferLength];