diff options
author | kchoi <code.kchoi@gmail.com> | 2016-09-07 14:12:22 -0700 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-09-07 23:12:22 +0200 |
commit | 4149bd2070e0a8beec6dedb238e6fd832a39611b (patch) | |
tree | 7aa9401597ad87d4d1d902643439af1614458b99 /src/pal/tests/palsuite/c_runtime | |
parent | 09133905fce3b541702044b6d2bbe942a6b40155 (diff) | |
download | coreclr-4149bd2070e0a8beec6dedb238e6fd832a39611b.tar.gz coreclr-4149bd2070e0a8beec6dedb238e6fd832a39611b.tar.bz2 coreclr-4149bd2070e0a8beec6dedb238e6fd832a39611b.zip |
Fix strict aliasing violation from conditional typedef of wchar_t by building entire project as C++ for Unix (#6801)
Enable building CoreCLR as C++ project on Unix
This series of patches fixes the strict aliasing violation from
the conditional typedef of wchar_t in src/pal/inc/pal_char16.h:40
* rename c files to cpp
* modify all cmake files to change .c files to .cpp
* apply c++ linkage to templates
Diffstat (limited to 'src/pal/tests/palsuite/c_runtime')
946 files changed, 711 insertions, 711 deletions
diff --git a/src/pal/tests/palsuite/c_runtime/__iscsym/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/__iscsym/test1/CMakeLists.txt index a283161f7d..b4421e77a1 100644 --- a/src/pal/tests/palsuite/c_runtime/__iscsym/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/__iscsym/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - __iscsym.c + __iscsym.cpp ) add_executable(paltest_iscsym_test1 diff --git a/src/pal/tests/palsuite/c_runtime/__iscsym/test1/__iscsym.c b/src/pal/tests/palsuite/c_runtime/__iscsym/test1/__iscsym.cpp index 9c8f1d0f25..9c8f1d0f25 100644 --- a/src/pal/tests/palsuite/c_runtime/__iscsym/test1/__iscsym.c +++ b/src/pal/tests/palsuite/c_runtime/__iscsym/test1/__iscsym.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_alloca/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_alloca/test1/CMakeLists.txt index 236b356185..434633be20 100644 --- a/src/pal/tests/palsuite/c_runtime/_alloca/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_alloca/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_alloca_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_alloca/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_alloca/test1/test1.cpp index c533d84234..c533d84234 100644 --- a/src/pal/tests/palsuite/c_runtime/_alloca/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_alloca/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_ecvt/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_ecvt/test1/CMakeLists.txt index 86f4547b2b..e78a802723 100644 --- a/src/pal/tests/palsuite/c_runtime/_ecvt/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_ecvt/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_ecvt_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_ecvt/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_ecvt/test1/test1.cpp index fbcf11ecfc..fbcf11ecfc 100644 --- a/src/pal/tests/palsuite/c_runtime/_ecvt/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_ecvt/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_fdopen/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_fdopen/test1/CMakeLists.txt index 441d32bd5c..60b036f44d 100644 --- a/src/pal/tests/palsuite/c_runtime/_fdopen/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_fdopen/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fdopen_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_fdopen/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_fdopen/test1/test1.cpp index b88267c6e4..b88267c6e4 100644 --- a/src/pal/tests/palsuite/c_runtime/_fdopen/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_fdopen/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_finite/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_finite/test1/CMakeLists.txt index 8aca58a8dc..ac2f25d85a 100644 --- a/src/pal/tests/palsuite/c_runtime/_finite/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_finite/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_finite_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_finite/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_finite/test1/test1.cpp index c815055b38..c815055b38 100644 --- a/src/pal/tests/palsuite/c_runtime/_finite/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_finite/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_fullpath/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_fullpath/test1/CMakeLists.txt index 9306efa700..0c9029f6e2 100644 --- a/src/pal/tests/palsuite/c_runtime/_fullpath/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_fullpath/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fullpath_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_fullpath/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_fullpath/test1/test1.cpp index f390f4309b..f390f4309b 100644 --- a/src/pal/tests/palsuite/c_runtime/_fullpath/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_fullpath/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_gcvt/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_gcvt/test1/CMakeLists.txt index 33eb5cf19c..47dcb95754 100644 --- a/src/pal/tests/palsuite/c_runtime/_gcvt/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_gcvt/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - _gcvt.c + _gcvt.cpp ) add_executable(paltest_gcvt_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_gcvt/test1/_gcvt.c b/src/pal/tests/palsuite/c_runtime/_gcvt/test1/_gcvt.cpp index ccfc286898..ccfc286898 100644 --- a/src/pal/tests/palsuite/c_runtime/_gcvt/test1/_gcvt.c +++ b/src/pal/tests/palsuite/c_runtime/_gcvt/test1/_gcvt.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_gcvt/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_gcvt/test2/CMakeLists.txt index 05641b9b78..5b0f5608f3 100644 --- a/src/pal/tests/palsuite/c_runtime/_gcvt/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_gcvt/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_gcvt_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_gcvt/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_gcvt/test2/test2.cpp index 7ac9a4fcf0..7ac9a4fcf0 100644 --- a/src/pal/tests/palsuite/c_runtime/_gcvt/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_gcvt/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_getw/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_getw/test1/CMakeLists.txt index d44477b232..4f763bed6b 100644 --- a/src/pal/tests/palsuite/c_runtime/_getw/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_getw/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_getw_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_getw/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_getw/test1/test1.cpp index 34ce4ee7de..34ce4ee7de 100644 --- a/src/pal/tests/palsuite/c_runtime/_getw/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_getw/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_isnan/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_isnan/test1/CMakeLists.txt index e14d0cc64b..106ccb93d7 100644 --- a/src/pal/tests/palsuite/c_runtime/_isnan/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_isnan/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_isnan_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_isnan/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_isnan/test1/test1.cpp index d793c9b371..d793c9b371 100644 --- a/src/pal/tests/palsuite/c_runtime/_isnan/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_isnan/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_itow/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_itow/test1/CMakeLists.txt index bd37f31216..2c5d57bd34 100644 --- a/src/pal/tests/palsuite/c_runtime/_itow/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_itow/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_itow_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_itow/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_itow/test1/test1.cpp index 745ce4acaa..745ce4acaa 100644 --- a/src/pal/tests/palsuite/c_runtime/_itow/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_itow/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_makepath/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_makepath/test1/CMakeLists.txt index 9fd81cce1a..9fcb8ba008 100644 --- a/src/pal/tests/palsuite/c_runtime/_makepath/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_makepath/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_makepath_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_makepath/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_makepath/test1/test1.cpp index 94b366a7bb..94b366a7bb 100644 --- a/src/pal/tests/palsuite/c_runtime/_makepath/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_makepath/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/CMakeLists.txt index 064f241f24..b016f27982 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_mbsdec_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/test1.cpp index 1cd7513293..1cd7513293 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_mbsdec/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/CMakeLists.txt index 531ba8e793..c7325b9513 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_mbsinc_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/test1.cpp index 95a5041af2..95a5041af2 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_mbsinc/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_mbslen/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_mbslen/test1/CMakeLists.txt index 38aa6fb16e..63d6b647d0 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbslen/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_mbslen/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_mbslen_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_mbslen/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_mbslen/test1/test1.cpp index fa24c77d8a..fa24c77d8a 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbslen/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_mbslen/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/CMakeLists.txt index 7285ce229e..81c6c23a53 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_mbsninc_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/test1.cpp index 59ef50dcc3..59ef50dcc3 100644 --- a/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_mbsninc/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/CMakeLists.txt index e9a3e29192..f4fedb61ae 100644 --- a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_open_osfhandle_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/test1.cpp index ee2c8ea418..ee2c8ea418 100644 --- a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/CMakeLists.txt index 1031ec1df9..6086868de2 100644 --- a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_open_osfhandle_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/test2.cpp index 6c756b177a..6c756b177a 100644 --- a/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_open_osfhandle/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_putenv/test1/CMakeLists.txt index 0a75b41113..9096bc1033 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_putenv_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_putenv/test1/test1.cpp index 2d096adc78..2d096adc78 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_putenv/test2/CMakeLists.txt index e0539681cd..ad99eba373 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_putenv_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_putenv/test2/test2.cpp index 39be4f68b4..39be4f68b4 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_putenv/test3/CMakeLists.txt index a67241022b..fc97b951b3 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_putenv_test3 diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test3/test3.c b/src/pal/tests/palsuite/c_runtime/_putenv/test3/test3.cpp index 8aa6777307..8aa6777307 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_putenv/test4/CMakeLists.txt index 518282ccc7..3881626d01 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_putenv_test4 diff --git a/src/pal/tests/palsuite/c_runtime/_putenv/test4/test4.c b/src/pal/tests/palsuite/c_runtime/_putenv/test4/test4.cpp index 48d7ba963c..48d7ba963c 100644 --- a/src/pal/tests/palsuite/c_runtime/_putenv/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/_putenv/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_putw/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_putw/test1/CMakeLists.txt index c3018ad322..78833d4e13 100644 --- a/src/pal/tests/palsuite/c_runtime/_putw/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_putw/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_putw_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_putw/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_putw/test1/test1.cpp index ecfc9046ac..02b7cc7a49 100644 --- a/src/pal/tests/palsuite/c_runtime/_putw/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_putw/test1/test1.cpp @@ -26,7 +26,7 @@ const char testFileName[] = "test.dat"; static void Cleanup(HANDLE hFile) { - if (fclose(hFile)) + if (fclose((PAL_FILE*)hFile)) { Trace("_putw: ERROR -> Unable to close file \"%s\".\n", testFileName); diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/_snprintf.h b/src/pal/tests/palsuite/c_runtime/_snprintf/_snprintf.h index 84abf62f0b..b3655b2b2b 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/_snprintf.h +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/_snprintf.h @@ -14,7 +14,7 @@ #ifndef __STRINGTEST_H__ #define __STRINGTEST_H__ -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { char buf[256] = { 0 }; @@ -27,7 +27,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) } } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { char buf[256] = { 0 }; @@ -41,7 +41,7 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } -void DoPointerTest(char *formatstr, void* param, char* paramstr, char +void DoPointerTest(const char *formatstr, void* param, char* paramstr, char *checkstr1) { char buf[256] = { 0 }; @@ -55,7 +55,7 @@ void DoPointerTest(char *formatstr, void* param, char* paramstr, char } } -void DoCountTest(char *formatstr, int param, char *checkstr) +void DoCountTest(const char *formatstr, int param, const char *checkstr) { char buf[512] = { 0 }; int n = -1; @@ -73,7 +73,7 @@ void DoCountTest(char *formatstr, int param, char *checkstr) } } -void DoShortCountTest(char *formatstr, int param, char *checkstr) +void DoShortCountTest(const char *formatstr, int param, const char *checkstr) { char buf[256] = { 0 }; short int n = -1; @@ -91,7 +91,7 @@ void DoShortCountTest(char *formatstr, int param, char *checkstr) } } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { char buf[256] = { 0 }; @@ -104,7 +104,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) } } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { char buf[256] = { 0 }; @@ -117,7 +117,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) } } -void DoNumTest(char *formatstr, int value, char *checkstr) +void DoNumTest(const char *formatstr, int value, const char *checkstr) { char buf[256] = { 0 }; @@ -130,7 +130,7 @@ void DoNumTest(char *formatstr, int value, char *checkstr) } } -void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1) +void DoI64Test(const char *formatstr, INT64 value, char *valuestr, const char *checkstr1) { char buf[256] = { 0 }; @@ -143,7 +143,7 @@ void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1) } } -void DoDoubleTest(char *formatstr, double value, char *checkstr1, char +void DoDoubleTest(const char *formatstr, double value, const char *checkstr1, char *checkstr2) { char buf[256] = { 0 }; @@ -158,8 +158,8 @@ void DoDoubleTest(char *formatstr, double value, char *checkstr1, char } } -void DoArgumentPrecTest(char *formatstr, int precision, void *param, char -*paramstr, char *checkstr1, char*checkstr2) +void DoArgumentPrecTest(const char *formatstr, int precision, void *param, char +*paramstr, const char *checkstr1, const char *checkstr2) { char buf[256]; @@ -174,8 +174,8 @@ void DoArgumentPrecTest(char *formatstr, int precision, void *param, char } -void DoArgumentPrecDoubleTest(char *formatstr, int precision, double param, -char *checkstr1, char *checkstr2) +void DoArgumentPrecDoubleTest(const char *formatstr, int precision, double param, +const char *checkstr1, const char *checkstr2) { char buf[256]; diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test1/CMakeLists.txt index ab126fc59d..9e4c671ec8 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_snprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test1/test1.cpp index eef7406baa..eef7406baa 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test10/CMakeLists.txt index e8e9308849..57e7fb16d3 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_snprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test10/test10.cpp index 9191ccef27..9191ccef27 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test11/CMakeLists.txt index ccf3dc2572..4fc179c5a8 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_snprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test11/test11.cpp index 9d9302dee0..9d9302dee0 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test12/CMakeLists.txt index 68b442f1d9..a35609eb57 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_snprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test12/test12.cpp index d782fce788..d782fce788 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test13/CMakeLists.txt index 832b3fefbf..3bf986e851 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_snprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test13/test13.cpp index 68ba554d93..68ba554d93 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test14/CMakeLists.txt index c2e3be148d..985303ecf8 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_snprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test14/test14.cpp index d874690ba4..d874690ba4 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test15/CMakeLists.txt index 1bd24d5ccd..c7f5796089 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_snprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test15/test15.cpp index a637a706f5..a637a706f5 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test16/CMakeLists.txt index 952192e560..9a224bc23b 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_snprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test16/test16.cpp index 6793019383..6793019383 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test17/CMakeLists.txt index ce5cc1623e..3a8a349c84 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_snprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test17/test17.cpp index 9981b44619..9981b44619 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test18/CMakeLists.txt index bb9c9c37cc..96e39e8f41 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_snprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test18/test18.cpp index d28aec57d0..d28aec57d0 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test19/CMakeLists.txt index f3fbb95013..be3570f163 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_snprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test19/test19.cpp index 26dffd9214..a644071ea7 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test19/test19.cpp @@ -29,9 +29,9 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - DoArgumentPrecTest("%.*s", 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest("%.*S", 2, convert("bar"), "bar", "ba", "ba"); - DoArgumentPrecTest("%.*n", 3, &n, "pointer to int", "", ""); + DoArgumentPrecTest("%.*s", 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest("%.*S", 2, (void*)convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest("%.*n", 3, (void*)&n, "pointer to int", "", ""); if (n != 0) { Fail("ERROR: Expected count parameter to resolve to %d, got %X\n", diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test2/CMakeLists.txt index 8c617df108..11d18e61c3 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_snprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test2/test2.cpp index 3ccb66c23e..3ccb66c23e 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test3/CMakeLists.txt index 13330464a7..b8d4178962 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_snprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test3/test3.cpp index 496159c51e..496159c51e 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test4/CMakeLists.txt index 5132aa02de..568b7122de 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_snprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test4/test4.cpp index 8c39f222cc..8c39f222cc 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test5/CMakeLists.txt index 07e441cee0..7319680b94 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_snprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test5/test5.cpp index 46ab1dd35e..46ab1dd35e 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test6/CMakeLists.txt index 9ee5d90544..820cc66d55 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_snprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test6/test6.cpp index 32001c2d20..32001c2d20 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test7/CMakeLists.txt index f7651218e0..a2af7c4a8c 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_snprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test7/test7.cpp index bfd5c3f4f1..bfd5c3f4f1 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test8/CMakeLists.txt index 26af119852..53545c5dbf 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_snprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test8/test8.cpp index 60ff1b05b8..60ff1b05b8 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snprintf/test9/CMakeLists.txt index 484075919e..33ca9db7a8 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_snprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/_snprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/_snprintf/test9/test9.cpp index e836bcaee3..e836bcaee3 100644 --- a/src/pal/tests/palsuite/c_runtime/_snprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/_snprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/_snwprintf.h b/src/pal/tests/palsuite/c_runtime/_snwprintf/_snwprintf.h index 73bf4d6c12..1682db8139 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/_snwprintf.h +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/_snwprintf.h @@ -14,7 +14,7 @@ #ifndef ___SNWPRINTF_H__ #define ___SNWPRINTF_H__ -void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) +void DoWStrTest(const WCHAR *formatstr, WCHAR *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -28,7 +28,7 @@ void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) } } -void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) +void DoStrTest(const WCHAR *formatstr, char *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -42,7 +42,7 @@ void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) } } -void DoPointerTest(WCHAR *formatstr, void* param, WCHAR *checkstr1) +void DoPointerTest(const WCHAR *formatstr, void* param, const WCHAR *checkstr1) { WCHAR buf[256] = { 0 }; @@ -55,7 +55,7 @@ void DoPointerTest(WCHAR *formatstr, void* param, WCHAR *checkstr1) } } -void DoCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) +void DoCountTest(const WCHAR *formatstr, int param, const WCHAR *checkstr) { WCHAR buf[512] = { 0 }; int n = -1; @@ -75,7 +75,7 @@ void DoCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) } } -void DoShortCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) +void DoShortCountTest(const WCHAR *formatstr, int param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; short int n = -1; @@ -95,7 +95,7 @@ void DoShortCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) } } -void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) +void DoCharTest(const WCHAR *formatstr, char param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -108,7 +108,7 @@ void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) } } -void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) +void DoWCharTest(const WCHAR *formatstr, WCHAR param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -121,7 +121,7 @@ void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) } } -void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) +void DoNumTest(const WCHAR *formatstr, int value, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -135,8 +135,8 @@ void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) } -void DoI64Test(WCHAR *formatstr, INT64 param, char *paramdesc, - WCHAR *checkstr1) +void DoI64Test(const WCHAR *formatstr, INT64 param, char *paramdesc, + const WCHAR *checkstr1) { WCHAR buf[256] = { 0 }; @@ -149,8 +149,8 @@ void DoI64Test(WCHAR *formatstr, INT64 param, char *paramdesc, } } -void DoDoubleTest(WCHAR *formatstr, double value, WCHAR *checkstr1, - WCHAR *checkstr2) +void DoDoubleTest(const WCHAR *formatstr, double value, const WCHAR *checkstr1, + const WCHAR *checkstr2) { WCHAR buf[256] = { 0 }; @@ -165,8 +165,8 @@ void DoDoubleTest(WCHAR *formatstr, double value, WCHAR *checkstr1, } } -void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, - char *paramstr, WCHAR *checkstr1, WCHAR *checkstr2) +void DoArgumentPrecTest(const WCHAR *formatstr, int precision, void *param, + char *paramstr, const WCHAR *checkstr1, const WCHAR *checkstr2) { WCHAR buf[256]; @@ -181,8 +181,8 @@ void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, } } -void DoArgumentPrecDoubleTest(WCHAR *formatstr, int precision, double param, - WCHAR *checkstr) +void DoArgumentPrecDoubleTest(const WCHAR *formatstr, int precision, double param, + const WCHAR *checkstr) { WCHAR buf[256]; diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/CMakeLists.txt index b4ab6d5161..eac86f30e4 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_snwprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/test1.cpp index 5d13aaf05d..5d13aaf05d 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/CMakeLists.txt index 27aaca3bb9..82ee739587 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_snwprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/test10.cpp index e8a6d93ea3..e8a6d93ea3 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/CMakeLists.txt index e18ad4a31b..f7d7845571 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_snwprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/test11.cpp index 95f7f53210..95f7f53210 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/CMakeLists.txt index f2ae07c1b0..5b926fb548 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_snwprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/test12.cpp index ab58fa345f..ab58fa345f 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/CMakeLists.txt index 42847b6bcd..52a3c75a15 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_snwprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/test13.cpp index 5a3e22802d..5a3e22802d 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/CMakeLists.txt index e5cdbfad87..d557a30b42 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_snwprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/test14.cpp index c34875246d..c34875246d 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/CMakeLists.txt index dc7b4d66e9..2e5ee362fc 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_snwprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/test15.cpp index f45005b758..f45005b758 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/CMakeLists.txt index f147ad7e67..f4ce409dcb 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_snwprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/test16.cpp index 88f55bdc10..88f55bdc10 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/CMakeLists.txt index e40d3f4106..159e15dafe 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_snwprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/test17.cpp index 82f2330b48..82f2330b48 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/CMakeLists.txt index 68a014cb66..5964e849a4 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_snwprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/test18.cpp index dbb6233061..dbb6233061 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/CMakeLists.txt index 6dc30b4d33..5d84847ec1 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_snwprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/test19.cpp index efb222c6ba..584e66f8c7 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test19/test19.cpp @@ -25,11 +25,11 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - DoArgumentPrecTest(convert("%.*s"), 2, convert("bar"), "bar", + DoArgumentPrecTest(convert("%.*s"), 2, (void*)convert("bar"), "bar", convert("ba"), convert("ba")); - DoArgumentPrecTest(convert("%.*S"), 2, "bar", "bar", + DoArgumentPrecTest(convert("%.*S"), 2, (void*)"bar", "bar", convert("ba"), convert("ba")); - DoArgumentPrecTest(convert("%.*n"), 3, &n, "pointer to int", + DoArgumentPrecTest(convert("%.*n"), 3, (void*)&n, "pointer to int", convert(""), convert("")); if (n != 0) { diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/CMakeLists.txt index 9e0d950885..ea33d48bd5 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_snwprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/test2.cpp index 974b7967f2..974b7967f2 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/CMakeLists.txt index 4d5a28b0fe..5095b1a12e 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_snwprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/test3.cpp index bfb75ce323..bfb75ce323 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/CMakeLists.txt index 0102b0acea..9cf81ea1bd 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_snwprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/test4.cpp index 28f7998591..28f7998591 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/CMakeLists.txt index c835c94845..1ad16d2572 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_snwprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/test5.cpp index bbe459751b..bbe459751b 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/CMakeLists.txt index 37a415ed86..4996c7716f 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_snwprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/test6.cpp index 3d4ed3f882..3d4ed3f882 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/CMakeLists.txt index b1a07eeaa4..0e55fbf4d7 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_snwprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/test7.cpp index 7954ff71ca..7954ff71ca 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/CMakeLists.txt index 063ee2b9b6..8f7fbda5a0 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_snwprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/test8.cpp index 91c2820076..91c2820076 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/CMakeLists.txt index 8d5e41131d..f769c9eaa5 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_snwprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/test9.cpp index f8f994fdcc..f8f994fdcc 100644 --- a/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/_snwprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_splitpath/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_splitpath/test1/CMakeLists.txt index 361b9084d7..a72f2939c2 100644 --- a/src/pal/tests/palsuite/c_runtime/_splitpath/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_splitpath/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_splitpath_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_splitpath/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_splitpath/test1/test1.cpp index e98354c2ee..e98354c2ee 100644 --- a/src/pal/tests/palsuite/c_runtime/_splitpath/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_splitpath/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_stricmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_stricmp/test1/CMakeLists.txt index 766660ccfc..03aa3a523e 100644 --- a/src/pal/tests/palsuite/c_runtime/_stricmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_stricmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_stricmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_stricmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_stricmp/test1/test1.cpp index 60e2f9eb8b..60e2f9eb8b 100644 --- a/src/pal/tests/palsuite/c_runtime/_stricmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_stricmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_strlwr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_strlwr/test1/CMakeLists.txt index 3a9394ca60..ca26961b3c 100644 --- a/src/pal/tests/palsuite/c_runtime/_strlwr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_strlwr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strlwr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_strlwr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_strlwr/test1/test1.cpp index 1c4015e3e2..1c4015e3e2 100644 --- a/src/pal/tests/palsuite/c_runtime/_strlwr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_strlwr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/CMakeLists.txt index 6a38747592..03f9992198 100644 --- a/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strnicmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/test1.cpp index 3c915dc621..3c915dc621 100644 --- a/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_strnicmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_swab/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_swab/test1/CMakeLists.txt index fc7fbef8b4..67f52ee9ca 100644 --- a/src/pal/tests/palsuite/c_runtime/_swab/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_swab/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_swab_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_swab/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_swab/test1/test1.cpp index 203e3b3a06..203e3b3a06 100644 --- a/src/pal/tests/palsuite/c_runtime/_swab/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_swab/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/_vsnprintf.h b/src/pal/tests/palsuite/c_runtime/_vsnprintf/_vsnprintf.h index 240a72f017..30e70648c3 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/_vsnprintf.h +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/_vsnprintf.h @@ -28,7 +28,7 @@ int Testvsnprintf(char* buf, size_t count, const char* format, ...) } -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { char buf[256] = { 0 }; @@ -41,7 +41,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) } } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { char buf[256] = { 0 }; @@ -55,7 +55,7 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { char buf[256] = { 0 }; @@ -68,7 +68,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) } } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { char buf[256] = { 0 }; @@ -81,7 +81,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) } } -void DoNumTest(char *formatstr, int value, char *checkstr) +void DoNumTest(const char *formatstr, int value, const char *checkstr) { char buf[256] = { 0 }; @@ -94,7 +94,7 @@ void DoNumTest(char *formatstr, int value, char *checkstr) } } -void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr) +void DoI64Test(const char *formatstr, INT64 value, char *valuestr, const char *checkstr) { char buf[256] = { 0 }; @@ -106,7 +106,7 @@ void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr) valuestr, formatstr, checkstr, buf); } } -void DoDoubleTest(char *formatstr, double value, char *checkstr1, char +void DoDoubleTest(const char *formatstr, double value, const char *checkstr1, char *checkstr2) { char buf[256] = { 0 }; diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/CMakeLists.txt index 7c346a4638..489b7bf566 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_vsnprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/test1.cpp index 88aeec27a5..88aeec27a5 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/CMakeLists.txt index 00dccc260d..bc35dbd0c2 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_vsnprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/test10.cpp index 3099957ab7..3099957ab7 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/CMakeLists.txt index fd709f2a31..bf3dd9a534 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_vsnprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/test11.cpp index 74b0435c6d..74b0435c6d 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/CMakeLists.txt index 02dac0cb91..9fceeaf7a5 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_vsnprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/test12.cpp index 3718620971..3718620971 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/CMakeLists.txt index 52562c99f8..7e805f6ad4 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_vsnprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/test13.cpp index 1abada4033..1abada4033 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/CMakeLists.txt index 3fc8c814a6..6e4566b577 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_vsnprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/test14.cpp index 2e98f6ad4e..2e98f6ad4e 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/CMakeLists.txt index f6bdc83779..d9039b39b7 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_vsnprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/test15.cpp index 4d32e9c638..4d32e9c638 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/CMakeLists.txt index b7b06d19bb..b298df318b 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_vsnprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/test16.cpp index 118ba1453c..118ba1453c 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/CMakeLists.txt index 2c91cccd4a..b195f334d3 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_vsnprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/test17.cpp index 9b5063ddf0..9b5063ddf0 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/CMakeLists.txt index 1a06ce01ee..f0f6d1124e 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_vsnprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/test18.cpp index 5232befc7f..5232befc7f 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/CMakeLists.txt index 6f2e42cc6b..44b38902ef 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_vsnprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/test19.cpp index 075a528aba..211354bc3a 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test19/test19.cpp @@ -63,8 +63,8 @@ int __cdecl main(int argc, char *argv[]) } - DoArgumentPrecTest("%.*s", 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest("%.*S", 2, convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest("%.*s", 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest("%.*S", 2, (void*)convert("bar"), "bar", "ba", "ba"); DoArgumentPrecTest("%.*c", 0, (void*)'a', "a", "a", "a"); DoArgumentPrecTest("%.*c", 4, (void*)'a', "a", "a", "a"); DoArgumentPrecTest("%.*C", 0, (void*)'a', "a", "a", "a"); diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/CMakeLists.txt index a3871d64cf..1d3910e70c 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_vsnprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/test2.cpp index 4bac4d2c83..4bac4d2c83 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/CMakeLists.txt index 1beae06277..62d765ec5f 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_vsnprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/test3.cpp index 2b30c9ad99..2b30c9ad99 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/CMakeLists.txt index daf7757ddb..5662bd57ad 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_vsnprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/test4.cpp index 33fc49deba..33fc49deba 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/CMakeLists.txt index c255b07b42..92540541f3 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_vsnprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/test5.cpp index 534e42e293..534e42e293 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/CMakeLists.txt index 8e041f4af8..d80d433c22 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_vsnprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/test6.cpp index 103d1181c2..103d1181c2 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/CMakeLists.txt index 01f9620184..a1dc0a7c2c 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_vsnprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/test7.cpp index c7e45d67fa..c7e45d67fa 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/CMakeLists.txt index 9c525de15a..1ca4732492 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_vsnprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/test8.cpp index 2cefbeac25..2cefbeac25 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/CMakeLists.txt index bfe2572a6d..583971fe5a 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_vsnprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/test9.cpp index d2cd8165c0..d2cd8165c0 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/_vsnwprintf.h b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/_vsnwprintf.h index a3a932f822..2be1398331 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/_vsnwprintf.h +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/_vsnwprintf.h @@ -28,7 +28,7 @@ int TestVsnwprintf(wchar_t* buf, size_t count, const wchar_t* format, ...) } -void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) +void DoWStrTest(const WCHAR *formatstr, WCHAR *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -43,7 +43,7 @@ void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) } } -void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) +void DoStrTest(const WCHAR *formatstr, char *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -58,7 +58,7 @@ void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) } } -void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) +void DoCharTest(const WCHAR *formatstr, char param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -72,7 +72,7 @@ void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) } } -void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) +void DoWCharTest(const WCHAR *formatstr, WCHAR param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -86,7 +86,7 @@ void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) } } -void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) +void DoNumTest(const WCHAR *formatstr, int value, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -99,7 +99,7 @@ void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) } } -void DoI64NumTest(WCHAR *formatstr, INT64 value, char *valuestr, WCHAR*checkstr) +void DoI64NumTest(const WCHAR *formatstr, INT64 value, char *valuestr, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -111,8 +111,8 @@ void DoI64NumTest(WCHAR *formatstr, INT64 value, char *valuestr, WCHAR*checkstr) convertC(checkstr), convertC(buf)); } } -void DoDoubleTest(WCHAR *formatstr, double value, - WCHAR *checkstr1, WCHAR *checkstr2) +void DoDoubleTest(const WCHAR *formatstr, double value, + const WCHAR *checkstr1, const WCHAR *checkstr2) { WCHAR buf[256] = { 0 }; diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/CMakeLists.txt index 52c442d572..d1245168f3 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_vsnwprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/test1.cpp index 0238e42611..0238e42611 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/CMakeLists.txt index 86ea1a3160..6367964f1d 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_vsnwprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/test10.cpp index 6e188e56ff..6e188e56ff 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/CMakeLists.txt index c6011dc1de..b45fd0ed1e 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_vsnwprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/test11.cpp index af54985bdc..af54985bdc 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/CMakeLists.txt index bd9652c2fb..2a15b198c0 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_vsnwprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/test12.cpp index b593a82b4b..b593a82b4b 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/CMakeLists.txt index c608ab84e3..01ab97cc62 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_vsnwprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/test13.cpp index 59a9dc496f..59a9dc496f 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/CMakeLists.txt index 3bf157a2b3..c6c990312f 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_vsnwprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/test14.cpp index 633f9d68ae..633f9d68ae 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/CMakeLists.txt index eedc7bb9db..e1a32b1825 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_vsnwprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/test15.cpp index 0af41fe1dc..0af41fe1dc 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/CMakeLists.txt index a469c497e9..9e2b25b308 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_vsnwprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/test16.cpp index 77571b01b3..77571b01b3 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/CMakeLists.txt index f429e94417..2d8ba31a08 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_vsnwprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/test17.cpp index 3a9d70ad03..3a9d70ad03 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/CMakeLists.txt index 25dd6a2c5b..503856c2f3 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_vsnwprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/test18.cpp index 03f9870113..03f9870113 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/CMakeLists.txt index 9c636b8b0a..68485eff12 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_vsnwprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/test19.cpp index fea275a242..adbb9961d8 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test19/test19.cpp @@ -69,7 +69,7 @@ int __cdecl main(int argc, char *argv[]) return(FAIL); } - DoArgumentPrecTest(convert("%.*s"), 2, convert("bar"), convert("bar"), + DoArgumentPrecTest(convert("%.*s"), 2, (void*)convert("bar"), convert("bar"), convert("ba"), convert("ba")); DoArgumentPrecTest(convert("%.*c"), 0, (void*)'a', convert("a"), convert("a"), convert("a")); diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/CMakeLists.txt index 817657ea61..a512be6e47 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_vsnwprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/test2.cpp index 20499954db..20499954db 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/CMakeLists.txt index 4af3e36f3b..7991c25afc 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_vsnwprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/test3.cpp index 9a37d3fc4b..9a37d3fc4b 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/CMakeLists.txt index b7ff9e7bb3..18f5d02df2 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_vsnwprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/test4.cpp index 6f39be2a80..6f39be2a80 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/CMakeLists.txt index 9b316b9f90..34787e4a51 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_vsnwprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/test5.cpp index 224db766ff..224db766ff 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/CMakeLists.txt index d3fad03597..c431da4a00 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_vsnwprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/test6.cpp index 1bd83ea85c..1bd83ea85c 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/CMakeLists.txt index cede861358..5759b836b5 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_vsnwprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/test7.cpp index e13798b784..e13798b784 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/CMakeLists.txt index 846e7b9219..5e8a6284a5 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_vsnwprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/test8.cpp index 8f02412eb0..8f02412eb0 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/CMakeLists.txt index e25eded172..323365dcd9 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_vsnwprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/test9.cpp index 7b5b6cd8a6..7b5b6cd8a6 100644 --- a/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/_vsnwprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/CMakeLists.txt index 5f085cc723..023b777cab 100644 --- a/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcsicmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/test1.cpp index dd4bb54680..dd4bb54680 100644 --- a/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_wcsicmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/CMakeLists.txt index a78098f86a..b9df132d29 100644 --- a/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcslwr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/test1.cpp index 3a758de39b..3a758de39b 100644 --- a/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_wcslwr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/CMakeLists.txt index afd3560b10..ea22daa477 100644 --- a/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcsnicmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/test1.cpp index 0271bcc60d..0271bcc60d 100644 --- a/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_wcsnicmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wfopen/test1/CMakeLists.txt index 96df58ee54..f7aa22d5b2 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wfopen_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_wfopen/test1/test1.cpp index 81d2502cd5..81d2502cd5 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wfopen/test2/CMakeLists.txt index 47203d86d5..3159889f0a 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_wfopen_test2 diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test2/test2.c b/src/pal/tests/palsuite/c_runtime/_wfopen/test2/test2.cpp index 921ffef19d..921ffef19d 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wfopen/test3/CMakeLists.txt index deec8bbfe6..06d0941471 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_wfopen_test3 diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test3/test3.c b/src/pal/tests/palsuite/c_runtime/_wfopen/test3/test3.cpp index 3b67818bc5..3b67818bc5 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wfopen/test4/CMakeLists.txt index e93cdd58de..8253d75d8d 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_wfopen_test4 diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test4/test4.c b/src/pal/tests/palsuite/c_runtime/_wfopen/test4/test4.cpp index 0948fa11cc..0948fa11cc 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wfopen/test5/CMakeLists.txt index 1530416795..8b3d064ec6 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_wfopen_test5 diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test5/test5.c b/src/pal/tests/palsuite/c_runtime/_wfopen/test5/test5.cpp index 21e5ec84ed..21e5ec84ed 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wfopen/test6/CMakeLists.txt index c401c6f40f..bf1eaeca27 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_wfopen_test6 diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test6/test6.c b/src/pal/tests/palsuite/c_runtime/_wfopen/test6/test6.cpp index 17d36a0c50..17d36a0c50 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wfopen/test7/CMakeLists.txt index 47f4804b43..5d04528a21 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_wfopen_test7 diff --git a/src/pal/tests/palsuite/c_runtime/_wfopen/test7/test7.c b/src/pal/tests/palsuite/c_runtime/_wfopen/test7/test7.cpp index 0a889adc8a..0a889adc8a 100644 --- a/src/pal/tests/palsuite/c_runtime/_wfopen/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/_wfopen/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/CMakeLists.txt index 343cb41f51..048b4cc8b0 100644 --- a/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wmakepath_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/test1.cpp index eb79dc6286..eb79dc6286 100644 --- a/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_wmakepath/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/CMakeLists.txt index ee9a7a8e96..bbfc2c0fac 100644 --- a/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wsplitpath_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/test1.cpp index 305768e53a..305768e53a 100644 --- a/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_wsplitpath/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/_wtoi/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/_wtoi/test1/CMakeLists.txt index 9e6610fc0f..ed02fec3af 100644 --- a/src/pal/tests/palsuite/c_runtime/_wtoi/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/_wtoi/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wtoi_test1 diff --git a/src/pal/tests/palsuite/c_runtime/_wtoi/test1/test1.c b/src/pal/tests/palsuite/c_runtime/_wtoi/test1/test1.cpp index 0b14dedd60..0b14dedd60 100644 --- a/src/pal/tests/palsuite/c_runtime/_wtoi/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/_wtoi/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/abs/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/abs/test1/CMakeLists.txt index c8a8595d01..b01d97ff2f 100644 --- a/src/pal/tests/palsuite/c_runtime/abs/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/abs/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - abs.c + abs.cpp ) add_executable(paltest_abs_test1 diff --git a/src/pal/tests/palsuite/c_runtime/abs/test1/abs.c b/src/pal/tests/palsuite/c_runtime/abs/test1/abs.cpp index 233a5dcb30..233a5dcb30 100644 --- a/src/pal/tests/palsuite/c_runtime/abs/test1/abs.c +++ b/src/pal/tests/palsuite/c_runtime/abs/test1/abs.cpp diff --git a/src/pal/tests/palsuite/c_runtime/acos/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/acos/test1/CMakeLists.txt index 978ab427e8..5bd3ae06e8 100644 --- a/src/pal/tests/palsuite/c_runtime/acos/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/acos/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_acos_test1 diff --git a/src/pal/tests/palsuite/c_runtime/acos/test1/test1.c b/src/pal/tests/palsuite/c_runtime/acos/test1/test1.cpp index c6ed0692c7..c6ed0692c7 100644 --- a/src/pal/tests/palsuite/c_runtime/acos/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/acos/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/asin/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/asin/test1/CMakeLists.txt index a3aec3f60f..510b543a59 100644 --- a/src/pal/tests/palsuite/c_runtime/asin/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/asin/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_asin_test1 diff --git a/src/pal/tests/palsuite/c_runtime/asin/test1/test1.c b/src/pal/tests/palsuite/c_runtime/asin/test1/test1.cpp index 0a63356ed0..0a63356ed0 100644 --- a/src/pal/tests/palsuite/c_runtime/asin/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/asin/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/atan/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/atan/test1/CMakeLists.txt index b0b84e7c07..ace64e48bc 100644 --- a/src/pal/tests/palsuite/c_runtime/atan/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/atan/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_atan_test1 diff --git a/src/pal/tests/palsuite/c_runtime/atan/test1/test1.c b/src/pal/tests/palsuite/c_runtime/atan/test1/test1.cpp index 6840d46172..6840d46172 100644 --- a/src/pal/tests/palsuite/c_runtime/atan/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/atan/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/atan2/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/atan2/test1/CMakeLists.txt index 8bd69da2fa..cafa09f7fe 100644 --- a/src/pal/tests/palsuite/c_runtime/atan2/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/atan2/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_atan2_test1 diff --git a/src/pal/tests/palsuite/c_runtime/atan2/test1/test1.c b/src/pal/tests/palsuite/c_runtime/atan2/test1/test1.cpp index 15aa8f53b9..15aa8f53b9 100644 --- a/src/pal/tests/palsuite/c_runtime/atan2/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/atan2/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/atof/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/atof/test1/CMakeLists.txt index 1f34b7ebf5..12e584b9a0 100644 --- a/src/pal/tests/palsuite/c_runtime/atof/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/atof/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_atof_test1 diff --git a/src/pal/tests/palsuite/c_runtime/atof/test1/test1.c b/src/pal/tests/palsuite/c_runtime/atof/test1/test1.cpp index a973133f9e..a973133f9e 100644 --- a/src/pal/tests/palsuite/c_runtime/atof/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/atof/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/atoi/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/atoi/test1/CMakeLists.txt index 3549aca737..225052213f 100644 --- a/src/pal/tests/palsuite/c_runtime/atoi/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/atoi/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_atoi_test1 diff --git a/src/pal/tests/palsuite/c_runtime/atoi/test1/test1.c b/src/pal/tests/palsuite/c_runtime/atoi/test1/test1.cpp index 2554d4c353..2554d4c353 100644 --- a/src/pal/tests/palsuite/c_runtime/atoi/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/atoi/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/atol/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/atol/test1/CMakeLists.txt index 4fea187ad8..29643aae6b 100644 --- a/src/pal/tests/palsuite/c_runtime/atol/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/atol/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_atol_test1 diff --git a/src/pal/tests/palsuite/c_runtime/atol/test1/test1.c b/src/pal/tests/palsuite/c_runtime/atol/test1/test1.cpp index 5ad85d873f..5ad85d873f 100644 --- a/src/pal/tests/palsuite/c_runtime/atol/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/atol/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/bsearch/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/bsearch/test1/CMakeLists.txt index d2018f3325..c5aab7b84d 100644 --- a/src/pal/tests/palsuite/c_runtime/bsearch/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/bsearch/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_bsearch_test1 diff --git a/src/pal/tests/palsuite/c_runtime/bsearch/test1/test1.c b/src/pal/tests/palsuite/c_runtime/bsearch/test1/test1.cpp index c4b91738eb..c4b91738eb 100644 --- a/src/pal/tests/palsuite/c_runtime/bsearch/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/bsearch/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/bsearch/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/bsearch/test2/CMakeLists.txt index dc65560196..7ad33b12e5 100644 --- a/src/pal/tests/palsuite/c_runtime/bsearch/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/bsearch/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_bsearch_test2 diff --git a/src/pal/tests/palsuite/c_runtime/bsearch/test2/test2.c b/src/pal/tests/palsuite/c_runtime/bsearch/test2/test2.cpp index 6de1b3fada..6de1b3fada 100644 --- a/src/pal/tests/palsuite/c_runtime/bsearch/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/bsearch/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/ceil/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/ceil/test1/CMakeLists.txt index c73ad1dbbe..f834914545 100644 --- a/src/pal/tests/palsuite/c_runtime/ceil/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/ceil/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_ceil_test1 diff --git a/src/pal/tests/palsuite/c_runtime/ceil/test1/test1.c b/src/pal/tests/palsuite/c_runtime/ceil/test1/test1.cpp index e6e36e6e33..e6e36e6e33 100644 --- a/src/pal/tests/palsuite/c_runtime/ceil/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/ceil/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/cos/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/cos/test1/CMakeLists.txt index 1dda9a2563..536664c128 100644 --- a/src/pal/tests/palsuite/c_runtime/cos/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/cos/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_cos_test1 diff --git a/src/pal/tests/palsuite/c_runtime/cos/test1/test1.c b/src/pal/tests/palsuite/c_runtime/cos/test1/test1.cpp index 8c1c7300e6..8c1c7300e6 100644 --- a/src/pal/tests/palsuite/c_runtime/cos/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/cos/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/cosh/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/cosh/test1/CMakeLists.txt index bea7b7a3b7..e1fff0e9f1 100644 --- a/src/pal/tests/palsuite/c_runtime/cosh/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/cosh/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_cosh_test1 diff --git a/src/pal/tests/palsuite/c_runtime/cosh/test1/test1.c b/src/pal/tests/palsuite/c_runtime/cosh/test1/test1.cpp index 40c2fca85d..40c2fca85d 100644 --- a/src/pal/tests/palsuite/c_runtime/cosh/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/cosh/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/ctime/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/ctime/test1/CMakeLists.txt index aa64a71d1e..3eeffb0e39 100644 --- a/src/pal/tests/palsuite/c_runtime/ctime/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/ctime/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_ctime_test1 diff --git a/src/pal/tests/palsuite/c_runtime/ctime/test1/test1.c b/src/pal/tests/palsuite/c_runtime/ctime/test1/test1.cpp index 5d5e22ce89..5d5e22ce89 100644 --- a/src/pal/tests/palsuite/c_runtime/ctime/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/ctime/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/errno/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/errno/test1/CMakeLists.txt index 89b25a4fac..91b8d094b1 100644 --- a/src/pal/tests/palsuite/c_runtime/errno/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/errno/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_errno_test1 diff --git a/src/pal/tests/palsuite/c_runtime/errno/test1/test1.c b/src/pal/tests/palsuite/c_runtime/errno/test1/test1.cpp index 3ae25fb02a..3ae25fb02a 100644 --- a/src/pal/tests/palsuite/c_runtime/errno/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/errno/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/errno/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/errno/test2/CMakeLists.txt index edd4cf7975..ab7c4a27f2 100644 --- a/src/pal/tests/palsuite/c_runtime/errno/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/errno/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_errno_test2 diff --git a/src/pal/tests/palsuite/c_runtime/errno/test2/test2.c b/src/pal/tests/palsuite/c_runtime/errno/test2/test2.cpp index f418d2f199..f418d2f199 100644 --- a/src/pal/tests/palsuite/c_runtime/errno/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/errno/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/exit/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/exit/test1/CMakeLists.txt index eb9ca4e780..bb2cbccb9b 100644 --- a/src/pal/tests/palsuite/c_runtime/exit/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/exit/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_exit_test1 diff --git a/src/pal/tests/palsuite/c_runtime/exit/test1/test1.c b/src/pal/tests/palsuite/c_runtime/exit/test1/test1.cpp index 87c9d22b8a..87c9d22b8a 100644 --- a/src/pal/tests/palsuite/c_runtime/exit/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/exit/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/exit/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/exit/test2/CMakeLists.txt index 47d3a44c85..8a74e75ed5 100644 --- a/src/pal/tests/palsuite/c_runtime/exit/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/exit/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_exit_test2 diff --git a/src/pal/tests/palsuite/c_runtime/exit/test2/test2.c b/src/pal/tests/palsuite/c_runtime/exit/test2/test2.cpp index 16fbdfed2f..16fbdfed2f 100644 --- a/src/pal/tests/palsuite/c_runtime/exit/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/exit/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/exp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/exp/test1/CMakeLists.txt index 9cdd4ec5ed..3377ed22f2 100644 --- a/src/pal/tests/palsuite/c_runtime/exp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/exp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_exp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/exp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/exp/test1/test1.cpp index 20e071aa68..20e071aa68 100644 --- a/src/pal/tests/palsuite/c_runtime/exp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/exp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fabs/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fabs/test1/CMakeLists.txt index ab27230ac2..fa01a34dd9 100644 --- a/src/pal/tests/palsuite/c_runtime/fabs/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fabs/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fabs_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fabs/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fabs/test1/test1.cpp index 0a74d5c1c5..0a74d5c1c5 100644 --- a/src/pal/tests/palsuite/c_runtime/fabs/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fabs/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fabsf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fabsf/test1/CMakeLists.txt index 06512ebd7c..a1823e25e5 100644 --- a/src/pal/tests/palsuite/c_runtime/fabsf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fabsf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fabsf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fabsf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fabsf/test1/test1.cpp index 0b020729b8..0b020729b8 100644 --- a/src/pal/tests/palsuite/c_runtime/fabsf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fabsf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fclose/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fclose/test1/CMakeLists.txt index 55ed7c674e..64cfef0e18 100644 --- a/src/pal/tests/palsuite/c_runtime/fclose/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fclose/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fclose_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fclose/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fclose/test1/test1.cpp index 0a8463823d..0a8463823d 100644 --- a/src/pal/tests/palsuite/c_runtime/fclose/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fclose/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fclose/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fclose/test2/CMakeLists.txt index 178dc7d19a..3b5538608f 100644 --- a/src/pal/tests/palsuite/c_runtime/fclose/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fclose/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_fclose_test2 diff --git a/src/pal/tests/palsuite/c_runtime/fclose/test2/test2.c b/src/pal/tests/palsuite/c_runtime/fclose/test2/test2.cpp index f4da535535..f4da535535 100644 --- a/src/pal/tests/palsuite/c_runtime/fclose/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/fclose/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/feof/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/feof/test1/CMakeLists.txt index ee1389deb0..9f689503e6 100644 --- a/src/pal/tests/palsuite/c_runtime/feof/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/feof/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_feof_test1 diff --git a/src/pal/tests/palsuite/c_runtime/feof/test1/test1.c b/src/pal/tests/palsuite/c_runtime/feof/test1/test1.cpp index ba018aa91d..ba018aa91d 100644 --- a/src/pal/tests/palsuite/c_runtime/feof/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/feof/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/ferror/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/ferror/test1/CMakeLists.txt index 2ab12b5db3..cd1fe52381 100644 --- a/src/pal/tests/palsuite/c_runtime/ferror/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/ferror/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_ferror_test1 diff --git a/src/pal/tests/palsuite/c_runtime/ferror/test1/test1.c b/src/pal/tests/palsuite/c_runtime/ferror/test1/test1.cpp index 516f2531ed..516f2531ed 100644 --- a/src/pal/tests/palsuite/c_runtime/ferror/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/ferror/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/ferror/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/ferror/test2/CMakeLists.txt index 077dde0bc6..05bd7fd2f1 100644 --- a/src/pal/tests/palsuite/c_runtime/ferror/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/ferror/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_ferror_test2 diff --git a/src/pal/tests/palsuite/c_runtime/ferror/test2/test2.c b/src/pal/tests/palsuite/c_runtime/ferror/test2/test2.cpp index fdf9e032c8..fdf9e032c8 100644 --- a/src/pal/tests/palsuite/c_runtime/ferror/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/ferror/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fflush/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fflush/test1/CMakeLists.txt index 743f1d2111..58c7c5a3a4 100644 --- a/src/pal/tests/palsuite/c_runtime/fflush/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fflush/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fflush_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fflush/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fflush/test1/test1.cpp index 7baf9ba5b9..7baf9ba5b9 100644 --- a/src/pal/tests/palsuite/c_runtime/fflush/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fflush/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fgets/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fgets/test1/CMakeLists.txt index 672d910c85..d327d6882a 100644 --- a/src/pal/tests/palsuite/c_runtime/fgets/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fgets/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fgets_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fgets/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fgets/test1/test1.cpp index 5e0e62dece..5e0e62dece 100644 --- a/src/pal/tests/palsuite/c_runtime/fgets/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fgets/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fgets/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fgets/test2/CMakeLists.txt index d39401536b..23bcdef686 100644 --- a/src/pal/tests/palsuite/c_runtime/fgets/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fgets/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_fgets_test2 diff --git a/src/pal/tests/palsuite/c_runtime/fgets/test2/test2.c b/src/pal/tests/palsuite/c_runtime/fgets/test2/test2.cpp index fa37cdbc13..fa37cdbc13 100644 --- a/src/pal/tests/palsuite/c_runtime/fgets/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/fgets/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fgets/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fgets/test3/CMakeLists.txt index 50f0901ee1..0833ad0130 100644 --- a/src/pal/tests/palsuite/c_runtime/fgets/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fgets/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_fgets_test3 diff --git a/src/pal/tests/palsuite/c_runtime/fgets/test3/test3.c b/src/pal/tests/palsuite/c_runtime/fgets/test3/test3.cpp index 525ba9327f..525ba9327f 100644 --- a/src/pal/tests/palsuite/c_runtime/fgets/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/fgets/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/floor/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/floor/test1/CMakeLists.txt index dbc5abde5b..3222ed8ba3 100644 --- a/src/pal/tests/palsuite/c_runtime/floor/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/floor/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_floor_test1 diff --git a/src/pal/tests/palsuite/c_runtime/floor/test1/test1.c b/src/pal/tests/palsuite/c_runtime/floor/test1/test1.cpp index dba320919b..dba320919b 100644 --- a/src/pal/tests/palsuite/c_runtime/floor/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/floor/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fmod/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fmod/test1/CMakeLists.txt index c76df1f0bf..33fbfb2653 100644 --- a/src/pal/tests/palsuite/c_runtime/fmod/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fmod/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fmod_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fmod/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fmod/test1/test1.cpp index fd69ca52cb..fd69ca52cb 100644 --- a/src/pal/tests/palsuite/c_runtime/fmod/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fmod/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fmodf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fmodf/test1/CMakeLists.txt index d1ea238a98..487b3adda4 100644 --- a/src/pal/tests/palsuite/c_runtime/fmodf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fmodf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fmodf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fmodf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fmodf/test1/test1.cpp index 31b45d3606..31b45d3606 100644 --- a/src/pal/tests/palsuite/c_runtime/fmodf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fmodf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fopen/test1/CMakeLists.txt index 6578c43659..7603fc623e 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fopen/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fopen_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fopen/test1/test1.cpp index 565b4eb77d..565b4eb77d 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fopen/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fopen/test2/CMakeLists.txt index 4458ed21d8..b8569921de 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fopen/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_fopen_test2 diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test2/test2.c b/src/pal/tests/palsuite/c_runtime/fopen/test2/test2.cpp index 4026efe89a..4026efe89a 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/fopen/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fopen/test3/CMakeLists.txt index 2c80f72ae7..5b28caf4ba 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fopen/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_fopen_test3 diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test3/test3.c b/src/pal/tests/palsuite/c_runtime/fopen/test3/test3.cpp index f3af42dc8a..f3af42dc8a 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/fopen/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fopen/test4/CMakeLists.txt index 92e0ef0bd8..db5779f282 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fopen/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_fopen_test4 diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test4/test4.c b/src/pal/tests/palsuite/c_runtime/fopen/test4/test4.cpp index 04683d52c5..04683d52c5 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/fopen/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fopen/test5/CMakeLists.txt index 82529b9aab..6341e4a7d2 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fopen/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_fopen_test5 diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test5/test5.c b/src/pal/tests/palsuite/c_runtime/fopen/test5/test5.cpp index 0a760314e1..0a760314e1 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/fopen/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fopen/test6/CMakeLists.txt index 9a01cfb9a8..39cf9158bb 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fopen/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_fopen_test6 diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test6/test6.c b/src/pal/tests/palsuite/c_runtime/fopen/test6/test6.cpp index 03b6067fdd..03b6067fdd 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/fopen/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fopen/test7/CMakeLists.txt index 168a5aff53..ee22e347d6 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fopen/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_fopen_test7 diff --git a/src/pal/tests/palsuite/c_runtime/fopen/test7/test7.c b/src/pal/tests/palsuite/c_runtime/fopen/test7/test7.cpp index 3ef8602ddb..3ef8602ddb 100644 --- a/src/pal/tests/palsuite/c_runtime/fopen/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/fopen/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/fprintf.h b/src/pal/tests/palsuite/c_runtime/fprintf/fprintf.h index 380eb0a0b3..87ee0d1232 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/fprintf.h +++ b/src/pal/tests/palsuite/c_runtime/fprintf/fprintf.h @@ -11,7 +11,7 @@ function with this as a return type. #ifndef __FPRINTF_H__ #define __FPRINTF_H__ -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -34,7 +34,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) fclose(fp); } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -58,7 +58,7 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -81,7 +81,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) fclose(fp); } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -104,7 +104,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) fclose(fp); } -void DoNumTest(char *formatstr, int value, char *checkstr) +void DoNumTest(const char *formatstr, int value, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -127,7 +127,7 @@ void DoNumTest(char *formatstr, int value, char *checkstr) fclose(fp); } -void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1, char *checkstr2) +void DoI64Test(const char *formatstr, INT64 value, char *valuestr, const char *checkstr1, const char *checkstr2) { FILE *fp; char buf[256] = { 0 }; @@ -151,7 +151,7 @@ void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1, ch fclose(fp); } -void DoDoubleTest(char *formatstr, double value, char *checkstr1, char *checkstr2) +void DoDoubleTest(const char *formatstr, double value, const char *checkstr1, const char *checkstr2) { FILE *fp; char buf[256] = { 0 }; diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test1/CMakeLists.txt index ab4176563d..60ffd49cf5 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fprintf/test1/test1.cpp index d55fc2534c..d55fc2534c 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test10/CMakeLists.txt index f718ad7934..3fb57c217c 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_fprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/fprintf/test10/test10.cpp index 5988e8da74..5988e8da74 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test11/CMakeLists.txt index 6ccd58ddd2..d325ce225e 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_fprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/fprintf/test11/test11.cpp index 01880552b7..01880552b7 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test12/CMakeLists.txt index 17bc7f100b..8bd3970e80 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_fprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/fprintf/test12/test12.cpp index 0292e15014..0292e15014 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test13/CMakeLists.txt index c6eb0f9075..702058b797 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_fprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/fprintf/test13/test13.cpp index e171aeacce..e171aeacce 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test14/CMakeLists.txt index 6bb281bc62..b92ede7c87 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_fprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/fprintf/test14/test14.cpp index 5d7d77387d..5d7d77387d 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test15/CMakeLists.txt index ce1a8b6111..20f1e42aab 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_fprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/fprintf/test15/test15.cpp index d024bdbd8a..d024bdbd8a 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test16/CMakeLists.txt index 011cd13fb1..8d72421210 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_fprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/fprintf/test16/test16.cpp index 079faeaf59..079faeaf59 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test17/CMakeLists.txt index 4516f4b769..82d1f84f31 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_fprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/fprintf/test17/test17.cpp index 7bd817d7db..7bd817d7db 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test18/CMakeLists.txt index fc035020ca..1ca54e42b7 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_fprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/fprintf/test18/test18.cpp index 6582c41e0f..6582c41e0f 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test19/CMakeLists.txt index 3781b426f2..2c66239801 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_fprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/fprintf/test19/test19.cpp index 9d9a28c325..9d9a28c325 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test19/test19.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test2/CMakeLists.txt index 0ef44b6b7d..ae1d9dc64d 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_fprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/fprintf/test2/test2.cpp index 1ed7f3fd23..1ed7f3fd23 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test3/CMakeLists.txt index adfd36fce7..4b10c4c407 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_fprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/fprintf/test3/test3.cpp index 6185135581..6185135581 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test4/CMakeLists.txt index 7d471b1b9c..292bdb6625 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_fprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/fprintf/test4/test4.cpp index 51ec1f099c..51ec1f099c 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test5/CMakeLists.txt index 1e3a568513..370ed3329a 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_fprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/fprintf/test5/test5.cpp index c53e3f45b4..c53e3f45b4 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test6/CMakeLists.txt index 89620dd453..bd1cbda924 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_fprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/fprintf/test6/test6.cpp index 0a8bc6b103..0a8bc6b103 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test7/CMakeLists.txt index 3dc10dd6dc..38429e7900 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_fprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/fprintf/test7/test7.cpp index 088e328de5..088e328de5 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test8/CMakeLists.txt index f6dd984af9..990eca26b0 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_fprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/fprintf/test8/test8.cpp index c781abc968..c781abc968 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fprintf/test9/CMakeLists.txt index 62aa85e6ff..715d38a431 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_fprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/fprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/fprintf/test9/test9.cpp index 3b06daec48..3b06daec48 100644 --- a/src/pal/tests/palsuite/c_runtime/fprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/fprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fputs/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fputs/test1/CMakeLists.txt index e4a92d5966..d0f1aca0e6 100644 --- a/src/pal/tests/palsuite/c_runtime/fputs/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fputs/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fputs_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fputs/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fputs/test1/test1.cpp index b90ea082e9..b90ea082e9 100644 --- a/src/pal/tests/palsuite/c_runtime/fputs/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fputs/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fputs/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fputs/test2/CMakeLists.txt index 6e939f3346..9242ea16e5 100644 --- a/src/pal/tests/palsuite/c_runtime/fputs/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fputs/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_fputs_test2 diff --git a/src/pal/tests/palsuite/c_runtime/fputs/test2/test2.c b/src/pal/tests/palsuite/c_runtime/fputs/test2/test2.cpp index b8e2f410bb..b8e2f410bb 100644 --- a/src/pal/tests/palsuite/c_runtime/fputs/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/fputs/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fread/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fread/test1/CMakeLists.txt index a2e09579b1..1bd84b5c62 100644 --- a/src/pal/tests/palsuite/c_runtime/fread/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fread/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fread_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fread/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fread/test1/test1.cpp index b706b2e91c..b706b2e91c 100644 --- a/src/pal/tests/palsuite/c_runtime/fread/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fread/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fread/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fread/test2/CMakeLists.txt index 0538e0c3af..93e0394832 100644 --- a/src/pal/tests/palsuite/c_runtime/fread/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fread/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_fread_test2 diff --git a/src/pal/tests/palsuite/c_runtime/fread/test2/test2.c b/src/pal/tests/palsuite/c_runtime/fread/test2/test2.cpp index d7262a9321..d7262a9321 100644 --- a/src/pal/tests/palsuite/c_runtime/fread/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/fread/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fread/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fread/test3/CMakeLists.txt index f3c636f3df..285608bc3d 100644 --- a/src/pal/tests/palsuite/c_runtime/fread/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fread/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_fread_test3 diff --git a/src/pal/tests/palsuite/c_runtime/fread/test3/test3.c b/src/pal/tests/palsuite/c_runtime/fread/test3/test3.cpp index 8c79bee582..8c79bee582 100644 --- a/src/pal/tests/palsuite/c_runtime/fread/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/fread/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/free/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/free/test1/CMakeLists.txt index bd94cb5733..92ee9896c7 100644 --- a/src/pal/tests/palsuite/c_runtime/free/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/free/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_free_test1 diff --git a/src/pal/tests/palsuite/c_runtime/free/test1/test1.c b/src/pal/tests/palsuite/c_runtime/free/test1/test1.cpp index 4ff8dfb094..4ff8dfb094 100644 --- a/src/pal/tests/palsuite/c_runtime/free/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/free/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fseek/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fseek/test1/CMakeLists.txt index fb55bd1051..59ee8b4563 100644 --- a/src/pal/tests/palsuite/c_runtime/fseek/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fseek/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fseek_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fseek/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fseek/test1/test1.cpp index 8496289a01..dd1e87ea8d 100644 --- a/src/pal/tests/palsuite/c_runtime/fseek/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fseek/test1/test1.cpp @@ -23,7 +23,7 @@ static BOOL Cleanup(HANDLE hFile) { BOOL result= TRUE; - if (fclose(hFile)) + if (fclose((PAL_FILE*)hFile)) { Trace("fseek: ERROR -> Unable to close file \"%s\".\n", filename); diff --git a/src/pal/tests/palsuite/c_runtime/ftell/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/ftell/test1/CMakeLists.txt index 7ea9a51111..a1f350d0c2 100644 --- a/src/pal/tests/palsuite/c_runtime/ftell/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/ftell/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - ftell.c + ftell.cpp ) add_executable(paltest_ftell_test1 diff --git a/src/pal/tests/palsuite/c_runtime/ftell/test1/ftell.c b/src/pal/tests/palsuite/c_runtime/ftell/test1/ftell.cpp index 66e0854847..66e0854847 100644 --- a/src/pal/tests/palsuite/c_runtime/ftell/test1/ftell.c +++ b/src/pal/tests/palsuite/c_runtime/ftell/test1/ftell.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/fwprintf.h b/src/pal/tests/palsuite/c_runtime/fwprintf/fwprintf.h index 36756636cf..eed0e76484 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/fwprintf.h +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/fwprintf.h @@ -14,7 +14,7 @@ #ifndef __fwprintf_H__ #define __fwprintf_H__ -void DoStrTest(WCHAR *formatstr, char* param, char *checkstr) +void DoStrTest(const WCHAR *formatstr, char* param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -45,7 +45,7 @@ void DoStrTest(WCHAR *formatstr, char* param, char *checkstr) fclose(fp); } -void DoWStrTest(WCHAR *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const WCHAR *formatstr, WCHAR* param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -77,8 +77,8 @@ void DoWStrTest(WCHAR *formatstr, WCHAR* param, char *checkstr) } -void DoPointerTest(WCHAR *formatstr, void* param, char* paramstr, - char *checkstr1, char *checkstr2) +void DoPointerTest(const WCHAR *formatstr, void* param, char* paramstr, + const char *checkstr1, const char *checkstr2) { FILE *fp; char buf[256] = { 0 }; @@ -119,7 +119,7 @@ void DoPointerTest(WCHAR *formatstr, void* param, char* paramstr, -void DoCountTest(WCHAR *formatstr, int param, char *checkstr) +void DoCountTest(const WCHAR *formatstr, int param, const char *checkstr) { FILE *fp; char buf[512] = { 0 }; @@ -162,7 +162,7 @@ void DoCountTest(WCHAR *formatstr, int param, char *checkstr) } } -void DoShortCountTest(WCHAR *formatstr, int param, char *checkstr) +void DoShortCountTest(const WCHAR *formatstr, int param, const char *checkstr) { FILE *fp; char buf[512] = { 0 }; @@ -206,7 +206,7 @@ void DoShortCountTest(WCHAR *formatstr, int param, char *checkstr) } -void DoCharTest(WCHAR *formatstr, char param, char *checkstr) +void DoCharTest(const WCHAR *formatstr, char param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -237,7 +237,7 @@ void DoCharTest(WCHAR *formatstr, char param, char *checkstr) fclose(fp); } -void DoWCharTest(WCHAR *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const WCHAR *formatstr, WCHAR param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -268,7 +268,7 @@ void DoWCharTest(WCHAR *formatstr, WCHAR param, char *checkstr) fclose(fp); } -void DoNumTest(WCHAR *formatstr, int value, char *checkstr) +void DoNumTest(const WCHAR *formatstr, int value, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -299,8 +299,8 @@ void DoNumTest(WCHAR *formatstr, int value, char *checkstr) fclose(fp); } -void DoI64Test(WCHAR *formatstr, INT64 value, char *valuestr, char *checkstr1, - char *checkstr2) +void DoI64Test(const WCHAR *formatstr, INT64 value, char *valuestr, const char *checkstr1, + const char *checkstr2) { FILE *fp; char buf[256] = { 0 }; @@ -332,8 +332,8 @@ void DoI64Test(WCHAR *formatstr, INT64 value, char *valuestr, char *checkstr1, fclose(fp); } -void DoDoubleTest(WCHAR *formatstr, double value, char *checkstr1, - char *checkstr2) +void DoDoubleTest(const WCHAR *formatstr, double value, const char *checkstr1, + const char *checkstr2) { FILE *fp; char buf[256] = { 0 }; @@ -367,8 +367,8 @@ void DoDoubleTest(WCHAR *formatstr, double value, char *checkstr1, } -void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, - char *paramstr, char *checkstr1, char *checkstr2) +void DoArgumentPrecTest(const WCHAR *formatstr, int precision, void *param, + char *paramstr, const char *checkstr1, const char *checkstr2) { FILE *fp; char buf[256]; @@ -409,8 +409,8 @@ void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, } -void DoArgumentPrecDoubleTest(WCHAR *formatstr, int precision, double param, - char *checkstr1, char *checkstr2) +void DoArgumentPrecDoubleTest(const WCHAR *formatstr, int precision, double param, + const char *checkstr1, const char *checkstr2) { FILE *fp; char buf[256]; diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test1/CMakeLists.txt index ce4271edb2..519860b877 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fwprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test1/test1.cpp index 8a171db52a..8a171db52a 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test10/CMakeLists.txt index a8323b4fc7..e604e03dff 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_fwprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test10/test10.cpp index 3aa2c45c7c..3aa2c45c7c 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test11/CMakeLists.txt index 1b7987400a..18be522823 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_fwprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test11/test11.cpp index 5867cd64fb..5867cd64fb 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test12/CMakeLists.txt index 1e43a4c906..6ea739b28f 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_fwprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test12/test12.cpp index 48a6123423..48a6123423 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test13/CMakeLists.txt index c84dc3ea41..8505ccbd82 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_fwprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test13/test13.cpp index 6eabec6c77..6eabec6c77 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test14/CMakeLists.txt index 97824c76b7..548e60fdb8 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_fwprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test14/test14.cpp index 001cf72689..001cf72689 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test15/CMakeLists.txt index 6786c5b774..c5b53461a7 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_fwprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test15/test15.cpp index 9dfe82eccc..9dfe82eccc 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test16/CMakeLists.txt index be14870863..51af0a0d60 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_fwprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test16/test16.cpp index 1969be1824..1969be1824 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test17/CMakeLists.txt index b390d15620..9ed8a390e7 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_fwprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test17/test17.cpp index 66b12716d0..66b12716d0 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test18/CMakeLists.txt index 6f6d79bce5..3e3ba4efc7 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_fwprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test18/test18.cpp index a33dea39b3..a33dea39b3 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test19/CMakeLists.txt index bc10825ce1..fbb7370ba3 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_fwprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test19/test19.cpp index 4600de7fa9..a407c9f4bd 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test19/test19.cpp @@ -30,9 +30,9 @@ int __cdecl main(int argc, char *argv[]) return(FAIL); } - DoArgumentPrecTest(convert("%.*s"), 2, convert("bar"), "bar", "ba", "ba"); - DoArgumentPrecTest(convert("%.*S"), 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest(convert("foo %.*n"), 3, &n, "pointer to int", "foo ", + DoArgumentPrecTest(convert("%.*s"), 2, (void*)convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest(convert("%.*S"), 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest(convert("foo %.*n"), 3, (void*)&n, "pointer to int", "foo ", "foo "); if (n != 4) { diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test2/CMakeLists.txt index 64314651c0..e65a396862 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_fwprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test2/test2.cpp index ecd3c513df..ecd3c513df 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test3/CMakeLists.txt index 6906722cde..53c46369de 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_fwprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test3/test3.cpp index d718a19067..d718a19067 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test4/CMakeLists.txt index b91bc87195..9dbb46283e 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_fwprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test4/test4.cpp index 96fb472c3e..96fb472c3e 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test5/CMakeLists.txt index 53bf482b6f..4e72e3ca88 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_fwprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test5/test5.cpp index 9d95989090..9d95989090 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test6/CMakeLists.txt index bf7d7cccb8..d57f07fafa 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_fwprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test6/test6.cpp index 160ff524e0..160ff524e0 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test7/CMakeLists.txt index 68bcc9ca65..314ca353e5 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_fwprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test7/test7.cpp index c5515a8640..c5515a8640 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test8/CMakeLists.txt index e07cbb9119..e818df2eb2 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_fwprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test8/test8.cpp index efc81a954a..efc81a954a 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwprintf/test9/CMakeLists.txt index 898da1a64f..28b6b86921 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_fwprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/fwprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/fwprintf/test9/test9.cpp index 23db2d8971..23db2d8971 100644 --- a/src/pal/tests/palsuite/c_runtime/fwprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/fwprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/fwrite/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/fwrite/test1/CMakeLists.txt index 701e56acb5..5c8b7449f2 100644 --- a/src/pal/tests/palsuite/c_runtime/fwrite/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/fwrite/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_fwrite_test1 diff --git a/src/pal/tests/palsuite/c_runtime/fwrite/test1/test1.c b/src/pal/tests/palsuite/c_runtime/fwrite/test1/test1.cpp index 392522879f..392522879f 100644 --- a/src/pal/tests/palsuite/c_runtime/fwrite/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/fwrite/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/getc/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/getc/test1/CMakeLists.txt index 2a29e8af0a..68ecaa9abb 100644 --- a/src/pal/tests/palsuite/c_runtime/getc/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/getc/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - getc.c + getc.cpp ) add_executable(paltest_getc_test1 diff --git a/src/pal/tests/palsuite/c_runtime/getc/test1/getc.c b/src/pal/tests/palsuite/c_runtime/getc/test1/getc.cpp index dfe10d6160..dfe10d6160 100644 --- a/src/pal/tests/palsuite/c_runtime/getc/test1/getc.c +++ b/src/pal/tests/palsuite/c_runtime/getc/test1/getc.cpp diff --git a/src/pal/tests/palsuite/c_runtime/getenv/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/getenv/test1/CMakeLists.txt index 6243c032ab..9c52c2890e 100644 --- a/src/pal/tests/palsuite/c_runtime/getenv/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/getenv/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_getenv_test1 diff --git a/src/pal/tests/palsuite/c_runtime/getenv/test1/test1.c b/src/pal/tests/palsuite/c_runtime/getenv/test1/test1.cpp index 0fb9025c8f..0fb9025c8f 100644 --- a/src/pal/tests/palsuite/c_runtime/getenv/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/getenv/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/getenv/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/getenv/test2/CMakeLists.txt index 7a301a5ca6..971a836239 100644 --- a/src/pal/tests/palsuite/c_runtime/getenv/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/getenv/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_getenv_test2 diff --git a/src/pal/tests/palsuite/c_runtime/getenv/test2/test2.c b/src/pal/tests/palsuite/c_runtime/getenv/test2/test2.cpp index 26f245fcce..26f245fcce 100644 --- a/src/pal/tests/palsuite/c_runtime/getenv/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/getenv/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/getenv/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/getenv/test3/CMakeLists.txt index 2cbe472221..620ccd1003 100644 --- a/src/pal/tests/palsuite/c_runtime/getenv/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/getenv/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_getenv_test3 diff --git a/src/pal/tests/palsuite/c_runtime/getenv/test3/test3.c b/src/pal/tests/palsuite/c_runtime/getenv/test3/test3.cpp index 1eefd9d40c..1eefd9d40c 100644 --- a/src/pal/tests/palsuite/c_runtime/getenv/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/getenv/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isalnum/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isalnum/test1/CMakeLists.txt index 3879bb7902..af65f32cbf 100644 --- a/src/pal/tests/palsuite/c_runtime/isalnum/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isalnum/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_isalnum_test1 diff --git a/src/pal/tests/palsuite/c_runtime/isalnum/test1/test1.c b/src/pal/tests/palsuite/c_runtime/isalnum/test1/test1.cpp index d9cdfcadf6..d9cdfcadf6 100644 --- a/src/pal/tests/palsuite/c_runtime/isalnum/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/isalnum/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isalpha/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isalpha/test1/CMakeLists.txt index 44fb72d7fe..82f19ad383 100644 --- a/src/pal/tests/palsuite/c_runtime/isalpha/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isalpha/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_isalpha_test1 diff --git a/src/pal/tests/palsuite/c_runtime/isalpha/test1/test1.c b/src/pal/tests/palsuite/c_runtime/isalpha/test1/test1.cpp index b494d14a92..b494d14a92 100644 --- a/src/pal/tests/palsuite/c_runtime/isalpha/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/isalpha/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isdigit/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isdigit/test1/CMakeLists.txt index dd03b238e1..b96b7aa706 100644 --- a/src/pal/tests/palsuite/c_runtime/isdigit/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isdigit/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_isdigit_test1 diff --git a/src/pal/tests/palsuite/c_runtime/isdigit/test1/test1.c b/src/pal/tests/palsuite/c_runtime/isdigit/test1/test1.cpp index ad2344827f..ad2344827f 100644 --- a/src/pal/tests/palsuite/c_runtime/isdigit/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/isdigit/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/islower/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/islower/test1/CMakeLists.txt index b7f5ad069f..d071d4bb65 100644 --- a/src/pal/tests/palsuite/c_runtime/islower/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/islower/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_islower_test1 diff --git a/src/pal/tests/palsuite/c_runtime/islower/test1/test1.c b/src/pal/tests/palsuite/c_runtime/islower/test1/test1.cpp index c8e877b705..c8e877b705 100644 --- a/src/pal/tests/palsuite/c_runtime/islower/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/islower/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isprint/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isprint/test1/CMakeLists.txt index 365777ab5a..91410a02ab 100644 --- a/src/pal/tests/palsuite/c_runtime/isprint/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isprint/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - isprint.c + isprint.cpp ) add_executable(paltest_isprint_test1 diff --git a/src/pal/tests/palsuite/c_runtime/isprint/test1/isprint.c b/src/pal/tests/palsuite/c_runtime/isprint/test1/isprint.cpp index 54db666bf2..54db666bf2 100644 --- a/src/pal/tests/palsuite/c_runtime/isprint/test1/isprint.c +++ b/src/pal/tests/palsuite/c_runtime/isprint/test1/isprint.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isprint/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isprint/test2/CMakeLists.txt index a7ad75cc04..53ad94273c 100644 --- a/src/pal/tests/palsuite/c_runtime/isprint/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isprint/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_isprint_test2 diff --git a/src/pal/tests/palsuite/c_runtime/isprint/test2/test2.c b/src/pal/tests/palsuite/c_runtime/isprint/test2/test2.cpp index 2170c47a14..2170c47a14 100644 --- a/src/pal/tests/palsuite/c_runtime/isprint/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/isprint/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isspace/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isspace/test1/CMakeLists.txt index 34ad70d328..c3cc525145 100644 --- a/src/pal/tests/palsuite/c_runtime/isspace/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isspace/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_isspace_test1 diff --git a/src/pal/tests/palsuite/c_runtime/isspace/test1/test1.c b/src/pal/tests/palsuite/c_runtime/isspace/test1/test1.cpp index 6cd1ce878b..6cd1ce878b 100644 --- a/src/pal/tests/palsuite/c_runtime/isspace/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/isspace/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isupper/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isupper/test1/CMakeLists.txt index c7fc71c43b..e1cfa6609d 100644 --- a/src/pal/tests/palsuite/c_runtime/isupper/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isupper/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_isupper_test1 diff --git a/src/pal/tests/palsuite/c_runtime/isupper/test1/test1.c b/src/pal/tests/palsuite/c_runtime/isupper/test1/test1.cpp index b88bcc4a7e..b88bcc4a7e 100644 --- a/src/pal/tests/palsuite/c_runtime/isupper/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/isupper/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/iswdigit/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/iswdigit/test1/CMakeLists.txt index b35dd5ed6d..4074abbe76 100644 --- a/src/pal/tests/palsuite/c_runtime/iswdigit/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/iswdigit/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_iswdigit_test1 diff --git a/src/pal/tests/palsuite/c_runtime/iswdigit/test1/test1.c b/src/pal/tests/palsuite/c_runtime/iswdigit/test1/test1.cpp index 1cf94c5d13..1cf94c5d13 100644 --- a/src/pal/tests/palsuite/c_runtime/iswdigit/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/iswdigit/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/iswprint/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/iswprint/test1/CMakeLists.txt index 5e436c3ca2..d21c232133 100644 --- a/src/pal/tests/palsuite/c_runtime/iswprint/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/iswprint/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_iswprint_test1 diff --git a/src/pal/tests/palsuite/c_runtime/iswprint/test1/test1.c b/src/pal/tests/palsuite/c_runtime/iswprint/test1/test1.cpp index 08a985b2d6..08a985b2d6 100644 --- a/src/pal/tests/palsuite/c_runtime/iswprint/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/iswprint/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/iswspace/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/iswspace/test1/CMakeLists.txt index 1368e55ccc..1f9a54fb17 100644 --- a/src/pal/tests/palsuite/c_runtime/iswspace/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/iswspace/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_iswspace_test1 diff --git a/src/pal/tests/palsuite/c_runtime/iswspace/test1/test1.c b/src/pal/tests/palsuite/c_runtime/iswspace/test1/test1.cpp index c58997812e..c58997812e 100644 --- a/src/pal/tests/palsuite/c_runtime/iswspace/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/iswspace/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/iswupper/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/iswupper/test1/CMakeLists.txt index 8b8fae6d72..1da5fbaa75 100644 --- a/src/pal/tests/palsuite/c_runtime/iswupper/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/iswupper/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_iswupper_test1 diff --git a/src/pal/tests/palsuite/c_runtime/iswupper/test1/test1.c b/src/pal/tests/palsuite/c_runtime/iswupper/test1/test1.cpp index a01686be44..a01686be44 100644 --- a/src/pal/tests/palsuite/c_runtime/iswupper/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/iswupper/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/CMakeLists.txt index 3a726eced9..ae55976128 100644 --- a/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_iswxdigit_test1 diff --git a/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/test1.c b/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/test1.cpp index 73ad495856..73ad495856 100644 --- a/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/iswxdigit/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/isxdigit/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/isxdigit/test1/CMakeLists.txt index 8919b36e42..4fd46c93d8 100644 --- a/src/pal/tests/palsuite/c_runtime/isxdigit/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/isxdigit/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_isxdigit_test1 diff --git a/src/pal/tests/palsuite/c_runtime/isxdigit/test1/test1.c b/src/pal/tests/palsuite/c_runtime/isxdigit/test1/test1.cpp index be25af233c..be25af233c 100644 --- a/src/pal/tests/palsuite/c_runtime/isxdigit/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/isxdigit/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/labs/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/labs/test1/CMakeLists.txt index cf0f0999a9..2ffb3cd641 100644 --- a/src/pal/tests/palsuite/c_runtime/labs/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/labs/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_labs_test1 diff --git a/src/pal/tests/palsuite/c_runtime/labs/test1/test1.c b/src/pal/tests/palsuite/c_runtime/labs/test1/test1.cpp index 41f85226e1..41f85226e1 100644 --- a/src/pal/tests/palsuite/c_runtime/labs/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/labs/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/llabs/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/llabs/test1/CMakeLists.txt index 8f5bdbe097..3adc3cc737 100644 --- a/src/pal/tests/palsuite/c_runtime/llabs/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/llabs/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_llabs_test1 diff --git a/src/pal/tests/palsuite/c_runtime/llabs/test1/test1.c b/src/pal/tests/palsuite/c_runtime/llabs/test1/test1.cpp index 044e22f134..044e22f134 100644 --- a/src/pal/tests/palsuite/c_runtime/llabs/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/llabs/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/localtime/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/localtime/test1/CMakeLists.txt index 25acf48749..698699f821 100644 --- a/src/pal/tests/palsuite/c_runtime/localtime/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/localtime/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_localtime_test1 diff --git a/src/pal/tests/palsuite/c_runtime/localtime/test1/test1.c b/src/pal/tests/palsuite/c_runtime/localtime/test1/test1.cpp index a993a17f69..a993a17f69 100644 --- a/src/pal/tests/palsuite/c_runtime/localtime/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/localtime/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/log/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/log/test1/CMakeLists.txt index dd19002904..c8f991b997 100644 --- a/src/pal/tests/palsuite/c_runtime/log/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/log/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_log_test1 diff --git a/src/pal/tests/palsuite/c_runtime/log/test1/test1.c b/src/pal/tests/palsuite/c_runtime/log/test1/test1.cpp index eea592dd45..eea592dd45 100644 --- a/src/pal/tests/palsuite/c_runtime/log/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/log/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/log10/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/log10/test1/CMakeLists.txt index 31e750df3e..31025fbd04 100644 --- a/src/pal/tests/palsuite/c_runtime/log10/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/log10/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_log10_test1 diff --git a/src/pal/tests/palsuite/c_runtime/log10/test1/test1.c b/src/pal/tests/palsuite/c_runtime/log10/test1/test1.cpp index 13711a752e..13711a752e 100644 --- a/src/pal/tests/palsuite/c_runtime/log10/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/log10/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/malloc/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/malloc/test1/CMakeLists.txt index 4a388ad3d7..f475730973 100644 --- a/src/pal/tests/palsuite/c_runtime/malloc/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/malloc/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_malloc_test1 diff --git a/src/pal/tests/palsuite/c_runtime/malloc/test1/test1.c b/src/pal/tests/palsuite/c_runtime/malloc/test1/test1.cpp index 7ea4dd068f..7ea4dd068f 100644 --- a/src/pal/tests/palsuite/c_runtime/malloc/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/malloc/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/malloc/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/malloc/test2/CMakeLists.txt index abbed2aa62..663e104d0e 100644 --- a/src/pal/tests/palsuite/c_runtime/malloc/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/malloc/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_malloc_test2 diff --git a/src/pal/tests/palsuite/c_runtime/malloc/test2/test2.c b/src/pal/tests/palsuite/c_runtime/malloc/test2/test2.cpp index 5deee0eddb..5deee0eddb 100644 --- a/src/pal/tests/palsuite/c_runtime/malloc/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/malloc/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/memchr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/memchr/test1/CMakeLists.txt index 4e33a8fc04..959fd2a3bc 100644 --- a/src/pal/tests/palsuite/c_runtime/memchr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/memchr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_memchr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/memchr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/memchr/test1/test1.cpp index 043a6789d8..043a6789d8 100644 --- a/src/pal/tests/palsuite/c_runtime/memchr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/memchr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/memcmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/memcmp/test1/CMakeLists.txt index b61f208f34..43d8fdd7f7 100644 --- a/src/pal/tests/palsuite/c_runtime/memcmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/memcmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_memcmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/memcmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/memcmp/test1/test1.cpp index 7b63173e22..7b63173e22 100644 --- a/src/pal/tests/palsuite/c_runtime/memcmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/memcmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/memcpy/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/memcpy/test1/CMakeLists.txt index d846bfc62d..14db0df60e 100644 --- a/src/pal/tests/palsuite/c_runtime/memcpy/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/memcpy/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_memcpy_test1 diff --git a/src/pal/tests/palsuite/c_runtime/memcpy/test1/test1.c b/src/pal/tests/palsuite/c_runtime/memcpy/test1/test1.cpp index 9da98d6573..9da98d6573 100644 --- a/src/pal/tests/palsuite/c_runtime/memcpy/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/memcpy/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt index cf50ec01b7..db6f65e48b 100644 --- a/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/memmove/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_memmove_test1 diff --git a/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.c b/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.cpp index c1af871f4a..8279d67139 100644 --- a/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/memmove/test1/test1.cpp @@ -20,7 +20,7 @@ int __cdecl main(int argc, char **argv) char testB[15] = "aabbccddeeffgg"; char testC[15] = "aabbccddeeffgg"; char testD[15] = "aabbccddeeffgg"; - char insString[3] = "zzz"; + char insString[4] = "zzz"; char *retVal; if (PAL_Initialize(argc, argv)) @@ -68,7 +68,7 @@ int __cdecl main(int argc, char **argv) /* move a string to the middle of testC */ - retVal = memmove(testC+5, insString, 3); + retVal = (char*)memmove(testC+5, insString, 3); if(retVal != testC+5) { Fail("memmove: The function did not return the correct " @@ -83,7 +83,7 @@ int __cdecl main(int argc, char **argv) /* move a string to the end of testD */ - retVal = memmove(testD+11, insString, 3); + retVal = (char*)memmove(testD+11, insString, 3); if(retVal != testD+11) { Fail("memmove: The function did not return the correct " diff --git a/src/pal/tests/palsuite/c_runtime/memset/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/memset/test1/CMakeLists.txt index 78b5a6bc00..bc3d6251cb 100644 --- a/src/pal/tests/palsuite/c_runtime/memset/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/memset/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_memset_test1 diff --git a/src/pal/tests/palsuite/c_runtime/memset/test1/test1.c b/src/pal/tests/palsuite/c_runtime/memset/test1/test1.cpp index 67cde8756b..67cde8756b 100644 --- a/src/pal/tests/palsuite/c_runtime/memset/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/memset/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/modf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/modf/test1/CMakeLists.txt index 4b65ba7a6f..3fe7bc7c46 100644 --- a/src/pal/tests/palsuite/c_runtime/modf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/modf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_modf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/modf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/modf/test1/test1.cpp index 389d079253..389d079253 100644 --- a/src/pal/tests/palsuite/c_runtime/modf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/modf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/modff/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/modff/test1/CMakeLists.txt index 812cd1c47b..10e5e99267 100644 --- a/src/pal/tests/palsuite/c_runtime/modff/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/modff/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_modff_test1 diff --git a/src/pal/tests/palsuite/c_runtime/modff/test1/test1.c b/src/pal/tests/palsuite/c_runtime/modff/test1/test1.cpp index 6b7a50be39..6b7a50be39 100644 --- a/src/pal/tests/palsuite/c_runtime/modff/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/modff/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/pow/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/pow/test1/CMakeLists.txt index 69ba02af17..f94210d5b7 100644 --- a/src/pal/tests/palsuite/c_runtime/pow/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/pow/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_pow_test1 diff --git a/src/pal/tests/palsuite/c_runtime/pow/test1/test1.c b/src/pal/tests/palsuite/c_runtime/pow/test1/test1.cpp index 0a05cd5a47..0a05cd5a47 100644 --- a/src/pal/tests/palsuite/c_runtime/pow/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/pow/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/printf.h b/src/pal/tests/palsuite/c_runtime/printf/printf.h index 2eaa984bad..8ef725f305 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/printf.h +++ b/src/pal/tests/palsuite/c_runtime/printf/printf.h @@ -14,7 +14,7 @@ #ifndef __printf_H__ #define __printf_H__ -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { int ret; @@ -26,7 +26,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) } } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { int ret; @@ -38,8 +38,8 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } } -void DoPointerTest(char *formatstr, void* param, char* paramstr, - char *checkstr1) +void DoPointerTest(const char *formatstr, void* param, char* paramstr, + const char *checkstr1) { int ret; @@ -51,7 +51,7 @@ void DoPointerTest(char *formatstr, void* param, char* paramstr, } } -void DoCountTest(char *formatstr, int param, char *checkstr) +void DoCountTest(const char *formatstr, int param, const char *checkstr) { int ret; int n = -1; @@ -70,7 +70,7 @@ void DoCountTest(char *formatstr, int param, char *checkstr) } } -void DoShortCountTest(char *formatstr, int param, char *checkstr) +void DoShortCountTest(const char *formatstr, int param, const char *checkstr) { int ret; short int n = -1; @@ -90,7 +90,7 @@ void DoShortCountTest(char *formatstr, int param, char *checkstr) } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { int ret; @@ -102,7 +102,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) } } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { int ret; @@ -114,7 +114,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) } } -void DoNumTest(char *formatstr, int param, char *checkstr) +void DoNumTest(const char *formatstr, int param, const char *checkstr) { int ret; @@ -126,8 +126,8 @@ void DoNumTest(char *formatstr, int param, char *checkstr) } } -void DoI64Test(char *formatstr, INT64 param, char *valuestr, - char *checkstr1) +void DoI64Test(const char *formatstr, INT64 param, char *valuestr, + const char *checkstr1) { int ret; @@ -139,8 +139,8 @@ void DoI64Test(char *formatstr, INT64 param, char *valuestr, } } -void DoDoubleTest(char *formatstr, double param, - char *checkstr1, char *checkstr2) +void DoDoubleTest(const char *formatstr, double param, + const char *checkstr1, const char *checkstr2) { int ret; @@ -152,8 +152,8 @@ void DoDoubleTest(char *formatstr, double param, } } -void DoArgumentPrecTest(char *formatstr, int precision, void *param, - char *paramstr, char *checkstr1, char *checkstr2) +void DoArgumentPrecTest(const char *formatstr, int precision, void *param, + char *paramstr, const char *checkstr1, const char *checkstr2) { int ret; @@ -165,8 +165,8 @@ void DoArgumentPrecTest(char *formatstr, int precision, void *param, } } -void DoArgumentPrecDoubleTest(char *formatstr, int precision, double param, - char *checkstr1, char *checkstr2) +void DoArgumentPrecDoubleTest(const char *formatstr, int precision, double param, + const char *checkstr1, const char *checkstr2) { int ret; diff --git a/src/pal/tests/palsuite/c_runtime/printf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test1/CMakeLists.txt index bea9151ed7..2dace14f90 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_printf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/printf/test1/test1.cpp index 31b7014343..31b7014343 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test10/CMakeLists.txt index 89ff2e0190..75e30c8599 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_printf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/printf/test10/test10.cpp index 5e69175b07..5e69175b07 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test11/CMakeLists.txt index 349f154a8d..4ee12dc21d 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_printf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/printf/test11/test11.cpp index 788be8b2db..788be8b2db 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test12/CMakeLists.txt index 0d32ee1690..3b2e39d640 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_printf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/printf/test12/test12.cpp index b4006f2405..b4006f2405 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test13/CMakeLists.txt index 348d25b22d..b6af021d48 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_printf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/printf/test13/test13.cpp index ccd16b50d2..ccd16b50d2 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test14/CMakeLists.txt index 659ea78cc6..5a6cf8a180 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_printf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/printf/test14/test14.cpp index 10577db67d..10577db67d 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test15/CMakeLists.txt index 9e4e310304..b1466a387d 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_printf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/printf/test15/test15.cpp index 2acfc436a3..2acfc436a3 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test16/CMakeLists.txt index 7e477a3059..c81da10ec9 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_printf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/printf/test16/test16.cpp index 50c952f959..50c952f959 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test17/CMakeLists.txt index c18450c2aa..9d40e54ca6 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_printf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/printf/test17/test17.cpp index 96ddd5c1e4..96ddd5c1e4 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test18/CMakeLists.txt index b0468314a3..6ab11f4be1 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_printf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/printf/test18/test18.cpp index 6c05e40f42..6c05e40f42 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test19/CMakeLists.txt index efd47563d4..f022938e32 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_printf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/printf/test19/test19.cpp index 1e09398f7c..a3ce0e7ad8 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test19/test19.cpp @@ -28,10 +28,10 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - DoArgumentPrecTest("%.*s", 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest("%.*S", 2, convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest("%.*s", 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest("%.*S", 2, (void*)convert("bar"), "bar", "ba", "ba"); - DoArgumentPrecTest("%.*n", 3, &n, "pointer to int", "", ""); + DoArgumentPrecTest("%.*n", 3, (void*)&n, "pointer to int", "", ""); if (n != 0) { Fail("ERROR: Expected count parameter to resolve to %d, got %X\n", diff --git a/src/pal/tests/palsuite/c_runtime/printf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test2/CMakeLists.txt index c303a69134..e92b6b09f3 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_printf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/printf/test2/test2.cpp index e766ef4a90..e766ef4a90 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test3/CMakeLists.txt index 8bc7479797..fcfd779a0c 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_printf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/printf/test3/test3.cpp index 5cc530948c..5cc530948c 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test4/CMakeLists.txt index 55e5700fe3..7311bbea69 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_printf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/printf/test4/test4.cpp index bcdc201d4f..bcdc201d4f 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test5/CMakeLists.txt index d091bca2dc..bfe185c44f 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_printf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/printf/test5/test5.cpp index 9f8baa74da..9f8baa74da 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test6/CMakeLists.txt index c004e353e9..842ebfedc6 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_printf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/printf/test6/test6.cpp index edc65b6b9b..edc65b6b9b 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test7/CMakeLists.txt index ff6b647ccd..16e39198ba 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_printf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/printf/test7/test7.cpp index 3aeb58f7dc..3aeb58f7dc 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test8/CMakeLists.txt index 5ee387f5b8..4a40fee6d9 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_printf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/printf/test8/test8.cpp index daa4674b92..daa4674b92 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/printf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/printf/test9/CMakeLists.txt index baf46c1065..df8f75d2fd 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/printf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_printf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/printf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/printf/test9/test9.cpp index 22c60d04f2..22c60d04f2 100644 --- a/src/pal/tests/palsuite/c_runtime/printf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/printf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/qsort/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/qsort/test1/CMakeLists.txt index 105a727e91..ff215b8dc6 100644 --- a/src/pal/tests/palsuite/c_runtime/qsort/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/qsort/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_qsort_test1 diff --git a/src/pal/tests/palsuite/c_runtime/qsort/test1/test1.c b/src/pal/tests/palsuite/c_runtime/qsort/test1/test1.cpp index c65fb18e68..c65fb18e68 100644 --- a/src/pal/tests/palsuite/c_runtime/qsort/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/qsort/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/qsort/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/qsort/test2/CMakeLists.txt index 09e3f6db1e..cdd9642779 100644 --- a/src/pal/tests/palsuite/c_runtime/qsort/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/qsort/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_qsort_test2 diff --git a/src/pal/tests/palsuite/c_runtime/qsort/test2/test2.c b/src/pal/tests/palsuite/c_runtime/qsort/test2/test2.cpp index 8110dcd2c2..8110dcd2c2 100644 --- a/src/pal/tests/palsuite/c_runtime/qsort/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/qsort/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/rand_srand/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/rand_srand/test1/CMakeLists.txt index 939914662a..6728f402ff 100644 --- a/src/pal/tests/palsuite/c_runtime/rand_srand/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/rand_srand/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_rand_srand_test1 diff --git a/src/pal/tests/palsuite/c_runtime/rand_srand/test1/test1.c b/src/pal/tests/palsuite/c_runtime/rand_srand/test1/test1.cpp index 34154cb6d2..34154cb6d2 100644 --- a/src/pal/tests/palsuite/c_runtime/rand_srand/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/rand_srand/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt index 0a9f34fc3b..62830a0fe8 100644 --- a/src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/realloc/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_realloc_test1 diff --git a/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.c b/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.cpp index d0dd128cc1..64a9270eab 100644 --- a/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/realloc/test1/test1.cpp @@ -55,7 +55,7 @@ int __cdecl main(int argc, char **argv) } /* free the buffer */ - testA = realloc(testA, 0); + testA = (char*)realloc(testA, 0); if (testA != NULL) { Fail("Realloc didn't return NULL when called with a length " diff --git a/src/pal/tests/palsuite/c_runtime/sin/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sin/test1/CMakeLists.txt index e074337452..74a0e78f52 100644 --- a/src/pal/tests/palsuite/c_runtime/sin/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sin/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_sin_test1 diff --git a/src/pal/tests/palsuite/c_runtime/sin/test1/test1.c b/src/pal/tests/palsuite/c_runtime/sin/test1/test1.cpp index bec58d4dd9..bec58d4dd9 100644 --- a/src/pal/tests/palsuite/c_runtime/sin/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/sin/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sinh/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sinh/test1/CMakeLists.txt index 66cc691d92..b0101ba808 100644 --- a/src/pal/tests/palsuite/c_runtime/sinh/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sinh/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_sinh_test1 diff --git a/src/pal/tests/palsuite/c_runtime/sinh/test1/test1.c b/src/pal/tests/palsuite/c_runtime/sinh/test1/test1.cpp index e790b16fb4..e790b16fb4 100644 --- a/src/pal/tests/palsuite/c_runtime/sinh/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/sinh/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/sprintf.h b/src/pal/tests/palsuite/c_runtime/sprintf/sprintf.h index 411ae66d54..6ec4a4d591 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/sprintf.h +++ b/src/pal/tests/palsuite/c_runtime/sprintf/sprintf.h @@ -14,7 +14,7 @@ #ifndef __SPRINTF_H__ #define __SPRINTF_H__ -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { char buf[256] = { 0 }; @@ -27,7 +27,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) } } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { char buf[256] = { 0 }; @@ -40,8 +40,8 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } } -void DoPointerTest(char *formatstr, void* param, char* paramstr, - char *checkstr1) +void DoPointerTest(const char *formatstr, void* param, char* paramstr, + const char *checkstr1) { char buf[256] = { 0 }; @@ -54,7 +54,7 @@ void DoPointerTest(char *formatstr, void* param, char* paramstr, } } -void DoCountTest(char *formatstr, int param, char *checkstr) +void DoCountTest(const char *formatstr, int param, const char *checkstr) { char buf[512] = { 0 }; int n = -1; @@ -72,7 +72,7 @@ void DoCountTest(char *formatstr, int param, char *checkstr) } } -void DoShortCountTest(char *formatstr, int param, char *checkstr) +void DoShortCountTest(const char *formatstr, int param, const char *checkstr) { char buf[256] = { 0 }; short int n = -1; @@ -91,7 +91,7 @@ void DoShortCountTest(char *formatstr, int param, char *checkstr) } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { char buf[256] = { 0 }; @@ -104,7 +104,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) } } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { char buf[256] = { 0 }; @@ -117,7 +117,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) } } -void DoNumTest(char *formatstr, int value, char *checkstr) +void DoNumTest(const char *formatstr, int value, const char *checkstr) { char buf[256] = { 0 }; @@ -130,7 +130,7 @@ void DoNumTest(char *formatstr, int value, char *checkstr) } } -void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1) +void DoI64Test(const char *formatstr, INT64 value, char *valuestr, const char *checkstr1) { char buf[256] = { 0 }; @@ -143,8 +143,8 @@ void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1) } } -void DoDoubleTest(char *formatstr, double value, char *checkstr1, - char *checkstr2) +void DoDoubleTest(const char *formatstr, double value, const char *checkstr1, + const char *checkstr2) { char buf[256] = { 0 }; @@ -158,8 +158,8 @@ void DoDoubleTest(char *formatstr, double value, char *checkstr1, } } -void DoArgumentPrecTest(char *formatstr, int precision, void *param, - char *paramstr, char *checkstr1, char *checkstr2) +void DoArgumentPrecTest(const char *formatstr, int precision, void *param, + char *paramstr, const char *checkstr1, const char *checkstr2) { char buf[256]; @@ -174,8 +174,8 @@ void DoArgumentPrecTest(char *formatstr, int precision, void *param, } -void DoArgumentPrecDoubleTest(char *formatstr, int precision, double param, - char *checkstr1, char *checkstr2) +void DoArgumentPrecDoubleTest(const char *formatstr, int precision, double param, + const char *checkstr1, const char *checkstr2) { char buf[256]; diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test1/CMakeLists.txt index bdec045af9..ee0d90fe7f 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_sprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/sprintf/test1/test1.cpp index 42e27f263b..42e27f263b 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test10/CMakeLists.txt index 91e9db8ccc..1efad19dee 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_sprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/sprintf/test10/test10.cpp index ae7dbfb177..ae7dbfb177 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test11/CMakeLists.txt index b14c8be04d..f2f4da694c 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_sprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/sprintf/test11/test11.cpp index 0b5b5ab93d..0b5b5ab93d 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test12/CMakeLists.txt index 1e517495bd..361e91f9ae 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_sprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/sprintf/test12/test12.cpp index c2e778e494..c2e778e494 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test13/CMakeLists.txt index 25b033fe82..d08e13b2ba 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_sprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/sprintf/test13/test13.cpp index 0b4b7ed9ae..0b4b7ed9ae 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test14/CMakeLists.txt index 5eae306e16..60ac2922d7 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_sprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/sprintf/test14/test14.cpp index 20e986a9c3..20e986a9c3 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test15/CMakeLists.txt index 1fff23fc89..57bba40e6c 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_sprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/sprintf/test15/test15.cpp index 34199b2eb3..34199b2eb3 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test16/CMakeLists.txt index 2065c576d9..fc93e1a67d 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_sprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/sprintf/test16/test16.cpp index c93b68bc2d..c93b68bc2d 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test17/CMakeLists.txt index ce3a8ad048..dc5ff2bb30 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_sprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/sprintf/test17/test17.cpp index 643215b8f5..643215b8f5 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test18/CMakeLists.txt index 6f69e1c7c2..f6e1b09efa 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_sprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/sprintf/test18/test18.cpp index fa88152479..fa88152479 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test19/CMakeLists.txt index a2917b27dc..757288b694 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_sprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/sprintf/test19/test19.cpp index aee731cb74..bf3360c567 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test19/test19.cpp @@ -30,10 +30,10 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - DoArgumentPrecTest("%.*s", 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest("%.*S", 2, convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest("%.*s", 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest("%.*S", 2, (void*)convert("bar"), "bar", "ba", "ba"); - DoArgumentPrecTest("%.*n", 3, &n, "pointer to int", "", ""); + DoArgumentPrecTest("%.*n", 3, (void*)&n, "pointer to int", "", ""); if (n != 0) { Fail("ERROR: Expected count parameter to resolve to %d, got %X\n", diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test2/CMakeLists.txt index 8af1c53a30..d569263da4 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_sprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/sprintf/test2/test2.cpp index d50679a5a3..d50679a5a3 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test3/CMakeLists.txt index b7b7e0a579..518c3f847a 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_sprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/sprintf/test3/test3.cpp index ae52dbed08..ae52dbed08 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test4/CMakeLists.txt index 3478867b7c..260def44aa 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_sprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/sprintf/test4/test4.cpp index 9660ffaa3a..9660ffaa3a 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test5/CMakeLists.txt index dfa7583766..5d7ce6cb6d 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_sprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/sprintf/test5/test5.cpp index 1b52da77b6..1b52da77b6 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test6/CMakeLists.txt index 7a9a5fc856..fce1f204fd 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_sprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/sprintf/test6/test6.cpp index c14e075475..c14e075475 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test7/CMakeLists.txt index a539a59ab9..72a831ec89 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_sprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/sprintf/test7/test7.cpp index 082bd20e6d..082bd20e6d 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test8/CMakeLists.txt index 7a92c5072a..c9522c1c9d 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_sprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/sprintf/test8/test8.cpp index 9587c82c94..9587c82c94 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sprintf/test9/CMakeLists.txt index 2a91658bd4..e76fed4784 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_sprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/sprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/sprintf/test9/test9.cpp index 98f5db6ec1..98f5db6ec1 100644 --- a/src/pal/tests/palsuite/c_runtime/sprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/sprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sqrt/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sqrt/test1/CMakeLists.txt index 4347c44e46..d4aefe6ca8 100644 --- a/src/pal/tests/palsuite/c_runtime/sqrt/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sqrt/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_sqrt_test1 diff --git a/src/pal/tests/palsuite/c_runtime/sqrt/test1/test1.c b/src/pal/tests/palsuite/c_runtime/sqrt/test1/test1.cpp index 62d2251d61..62d2251d61 100644 --- a/src/pal/tests/palsuite/c_runtime/sqrt/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/sqrt/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/sscanf.h b/src/pal/tests/palsuite/c_runtime/sscanf/sscanf.h index 675a67aed2..397f05cead 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/sscanf.h +++ b/src/pal/tests/palsuite/c_runtime/sscanf/sscanf.h @@ -14,7 +14,7 @@ #ifndef __SSCANF_H__ #define __SSCANF_H__ -void DoVoidTest(char *inputstr, char *formatstr) +void DoVoidTest(char *inputstr, const char *formatstr) { char buf[256] = { 0 }; int i; @@ -38,7 +38,7 @@ void DoVoidTest(char *inputstr, char *formatstr) } -void DoStrTest(char *inputstr, char *formatstr, char *checkstr) +void DoStrTest(char *inputstr, const char *formatstr, const char *checkstr) { char buf[256] = { 0 }; int ret; @@ -59,7 +59,7 @@ void DoStrTest(char *inputstr, char *formatstr, char *checkstr) } -void DoWStrTest(char *inputstr, char *formatstr, WCHAR *checkstr) +void DoWStrTest(char *inputstr, const char *formatstr, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; int ret; @@ -80,7 +80,7 @@ void DoWStrTest(char *inputstr, char *formatstr, WCHAR *checkstr) } -void DoNumTest(char *inputstr, char *formatstr, int checknum) +void DoNumTest(char *inputstr, const char *formatstr, int checknum) { int num; int ret; @@ -99,7 +99,7 @@ void DoNumTest(char *inputstr, char *formatstr, int checknum) } } -void DoShortNumTest(char *inputstr, char *formatstr, short checknum) +void DoShortNumTest(char *inputstr, const char *formatstr, short checknum) { short num; int ret; @@ -118,7 +118,7 @@ void DoShortNumTest(char *inputstr, char *formatstr, short checknum) } } -void DoI64NumTest(char *inputstr, char *formatstr, INT64 checknum) +void DoI64NumTest(char *inputstr, const char *formatstr, INT64 checknum) { char buf[256]; char check[256]; @@ -141,7 +141,7 @@ void DoI64NumTest(char *inputstr, char *formatstr, INT64 checknum) } } -void DoCharTest(char *inputstr, char *formatstr, char* checkchars, int numchars) +void DoCharTest(char *inputstr, const char *formatstr, char* checkchars, int numchars) { char buf[256]; int ret; @@ -174,7 +174,7 @@ void DoCharTest(char *inputstr, char *formatstr, char* checkchars, int numchars) } } -void DoWCharTest(char *inputstr, char *formatstr, WCHAR* checkchars, int numchars) +void DoWCharTest(char *inputstr, const char *formatstr, WCHAR* checkchars, int numchars) { WCHAR buf[256]; int ret; @@ -208,7 +208,7 @@ void DoWCharTest(char *inputstr, char *formatstr, WCHAR* checkchars, int numchar } -void DoFloatTest(char *inputstr, char *formatstr, float checkval) +void DoFloatTest(char *inputstr, const char *formatstr, float checkval) { char buf[256] = { 0 }; float val; diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test1/CMakeLists.txt index dce6d1de87..97b8f570e3 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_sscanf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/sscanf/test1/test1.cpp index c6f66a1d20..c6f66a1d20 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test10/CMakeLists.txt index c27e4ce33a..afda216c6b 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_sscanf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/sscanf/test10/test10.cpp index aac5be43ae..aac5be43ae 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test11/CMakeLists.txt index 7570e990bf..c8f98aeeef 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_sscanf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/sscanf/test11/test11.cpp index 0e3db6cca0..0e3db6cca0 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test12/CMakeLists.txt index b6509e46d4..0ecedc3285 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_sscanf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/sscanf/test12/test12.cpp index f800e452c0..f800e452c0 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test13/CMakeLists.txt index 6fb4094f00..4566ec3338 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_sscanf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/sscanf/test13/test13.cpp index 314604e3ac..314604e3ac 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test14/CMakeLists.txt index 373a75fbda..557acf5bf8 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_sscanf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/sscanf/test14/test14.cpp index d1291a3b65..d1291a3b65 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test15/CMakeLists.txt index d500901782..efde5c4a21 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_sscanf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/sscanf/test15/test15.cpp index fa51467d85..fa51467d85 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test16/CMakeLists.txt index c5e18ec061..6757b0d78a 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_sscanf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/sscanf/test16/test16.cpp index 787b72ed0a..787b72ed0a 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test17/CMakeLists.txt index 7d908ab832..8ea4d5e3f6 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_sscanf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/sscanf/test17/test17.cpp index c0dfd1699c..c0dfd1699c 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test2/CMakeLists.txt index 571d773a88..4e36223a1d 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_sscanf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/sscanf/test2/test2.cpp index 1221124e3a..1221124e3a 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test3/CMakeLists.txt index ced8d5f8da..053a96ca0f 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_sscanf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/sscanf/test3/test3.cpp index 9d18991070..9d18991070 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test4/CMakeLists.txt index 3e70d6dae2..ae04bfef57 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_sscanf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.cpp index dd0538bcfe..dd0538bcfe 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test5/CMakeLists.txt index 391e51baa2..33dcaffec3 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_sscanf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/sscanf/test5/test5.cpp index 0d45248af3..0d45248af3 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test6/CMakeLists.txt index c0b21bfd0d..1dd23c3cb1 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_sscanf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/sscanf/test6/test6.cpp index c45ea31b04..c45ea31b04 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test7/CMakeLists.txt index bcbd268011..015a27b776 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_sscanf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/sscanf/test7/test7.cpp index 0899671d64..0899671d64 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test8/CMakeLists.txt index 211e9e4df6..aa41ab42a6 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_sscanf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/sscanf/test8/test8.cpp index 53252f8929..53252f8929 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/sscanf/test9/CMakeLists.txt index 77c269aeaa..b631fd40ea 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_sscanf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/sscanf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/sscanf/test9/test9.cpp index c5a2e0de5d..c5a2e0de5d 100644 --- a/src/pal/tests/palsuite/c_runtime/sscanf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/sscanf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strcat/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strcat/test1/CMakeLists.txt index 4a0f0be32d..fd62627db6 100644 --- a/src/pal/tests/palsuite/c_runtime/strcat/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strcat/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strcat_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strcat/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strcat/test1/test1.cpp index 532d84621e..532d84621e 100644 --- a/src/pal/tests/palsuite/c_runtime/strcat/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strcat/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strchr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strchr/test1/CMakeLists.txt index 1d248f3f56..f3ffe3bc15 100644 --- a/src/pal/tests/palsuite/c_runtime/strchr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strchr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strchr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strchr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strchr/test1/test1.cpp index 9190c4f7ce..9190c4f7ce 100644 --- a/src/pal/tests/palsuite/c_runtime/strchr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strchr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strcmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strcmp/test1/CMakeLists.txt index b953dfa034..3b0f89c2a5 100644 --- a/src/pal/tests/palsuite/c_runtime/strcmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strcmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strcmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strcmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strcmp/test1/test1.cpp index 49428fd624..49428fd624 100644 --- a/src/pal/tests/palsuite/c_runtime/strcmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strcmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strcpy/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strcpy/test1/CMakeLists.txt index 043ec57d98..4369d37a40 100644 --- a/src/pal/tests/palsuite/c_runtime/strcpy/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strcpy/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strcpy_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strcpy/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strcpy/test1/test1.cpp index 43069e59a6..43069e59a6 100644 --- a/src/pal/tests/palsuite/c_runtime/strcpy/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strcpy/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strcspn/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strcspn/test1/CMakeLists.txt index a38761c335..717e18f0e9 100644 --- a/src/pal/tests/palsuite/c_runtime/strcspn/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strcspn/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strcspn_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strcspn/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strcspn/test1/test1.cpp index ddc5667570..ddc5667570 100644 --- a/src/pal/tests/palsuite/c_runtime/strcspn/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strcspn/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strlen/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strlen/test1/CMakeLists.txt index c61828a97b..4afeb598aa 100644 --- a/src/pal/tests/palsuite/c_runtime/strlen/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strlen/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strlen_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strlen/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strlen/test1/test1.cpp index 40f8e151c7..40f8e151c7 100644 --- a/src/pal/tests/palsuite/c_runtime/strlen/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strlen/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strncat/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strncat/test1/CMakeLists.txt index 7595f66939..f8080ecdc2 100644 --- a/src/pal/tests/palsuite/c_runtime/strncat/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strncat/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strncat_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strncat/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strncat/test1/test1.cpp index 000d1685b9..000d1685b9 100644 --- a/src/pal/tests/palsuite/c_runtime/strncat/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strncat/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strncmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strncmp/test1/CMakeLists.txt index 4a0337a3dc..34b53e294d 100644 --- a/src/pal/tests/palsuite/c_runtime/strncmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strncmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strncmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strncmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strncmp/test1/test1.cpp index 7326c3b61e..7326c3b61e 100644 --- a/src/pal/tests/palsuite/c_runtime/strncmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strncmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strncpy/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strncpy/test1/CMakeLists.txt index 6e0250bce3..fb737c8c59 100644 --- a/src/pal/tests/palsuite/c_runtime/strncpy/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strncpy/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strncpy_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strncpy/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strncpy/test1/test1.cpp index 62baf61ba2..62baf61ba2 100644 --- a/src/pal/tests/palsuite/c_runtime/strncpy/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strncpy/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strpbrk/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strpbrk/test1/CMakeLists.txt index eac9ac9169..9e76436e01 100644 --- a/src/pal/tests/palsuite/c_runtime/strpbrk/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strpbrk/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strpbrk_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strpbrk/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strpbrk/test1/test1.cpp index a42b80f313..a42b80f313 100644 --- a/src/pal/tests/palsuite/c_runtime/strpbrk/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strpbrk/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strrchr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strrchr/test1/CMakeLists.txt index 5c099b0cd2..bb6916038d 100644 --- a/src/pal/tests/palsuite/c_runtime/strrchr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strrchr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strrchr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strrchr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strrchr/test1/test1.cpp index a5c147eece..a5c147eece 100644 --- a/src/pal/tests/palsuite/c_runtime/strrchr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strrchr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strspn/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strspn/test1/CMakeLists.txt index 45caaf1bf8..c72fd0fa9a 100644 --- a/src/pal/tests/palsuite/c_runtime/strspn/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strspn/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strspn_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strspn/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strspn/test1/test1.cpp index 78d2488438..78d2488438 100644 --- a/src/pal/tests/palsuite/c_runtime/strspn/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strspn/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strstr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strstr/test1/CMakeLists.txt index 17e6ae8457..004b9a5658 100644 --- a/src/pal/tests/palsuite/c_runtime/strstr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strstr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strstr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strstr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strstr/test1/test1.cpp index db01e8b32a..db01e8b32a 100644 --- a/src/pal/tests/palsuite/c_runtime/strstr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strstr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strtod/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strtod/test1/CMakeLists.txt index d3a9d61a4d..09884f32e6 100644 --- a/src/pal/tests/palsuite/c_runtime/strtod/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strtod/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strtod_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strtod/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strtod/test1/test1.cpp index e312d98f58..e312d98f58 100644 --- a/src/pal/tests/palsuite/c_runtime/strtod/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strtod/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strtod/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strtod/test2/CMakeLists.txt index 6f407c5914..8729cc5a1c 100644 --- a/src/pal/tests/palsuite/c_runtime/strtod/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strtod/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_strtod_test2 diff --git a/src/pal/tests/palsuite/c_runtime/strtod/test2/test2.c b/src/pal/tests/palsuite/c_runtime/strtod/test2/test2.cpp index 0eaf4f53b6..0eaf4f53b6 100644 --- a/src/pal/tests/palsuite/c_runtime/strtod/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/strtod/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strtok/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strtok/test1/CMakeLists.txt index 1d5fc04cca..422c4e96b5 100644 --- a/src/pal/tests/palsuite/c_runtime/strtok/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strtok/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strtok_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strtok/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strtok/test1/test1.cpp index f1dec70380..f1dec70380 100644 --- a/src/pal/tests/palsuite/c_runtime/strtok/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strtok/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/strtoul/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/strtoul/test1/CMakeLists.txt index 61dbd4f9a3..009e85fb11 100644 --- a/src/pal/tests/palsuite/c_runtime/strtoul/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/strtoul/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_strtoul_test1 diff --git a/src/pal/tests/palsuite/c_runtime/strtoul/test1/test1.c b/src/pal/tests/palsuite/c_runtime/strtoul/test1/test1.cpp index 344671b5cc..344671b5cc 100644 --- a/src/pal/tests/palsuite/c_runtime/strtoul/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/strtoul/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/swprintf.h b/src/pal/tests/palsuite/c_runtime/swprintf/swprintf.h index 5229506064..6f4c914a82 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/swprintf.h +++ b/src/pal/tests/palsuite/c_runtime/swprintf/swprintf.h @@ -14,7 +14,7 @@ #ifndef __SWPRINTF_H__ #define __SWPRINTF_H__ -void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) +void DoWStrTest(const WCHAR *formatstr, WCHAR *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -29,7 +29,7 @@ void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) } } -void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) +void DoStrTest(const WCHAR *formatstr, char *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -44,7 +44,7 @@ void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) } } -void DoPointerTest(WCHAR *formatstr, void* param, WCHAR *checkstr1) +void DoPointerTest(const WCHAR *formatstr, void* param, const WCHAR *checkstr1) { WCHAR buf[256] = { 0 }; @@ -57,7 +57,7 @@ void DoPointerTest(WCHAR *formatstr, void* param, WCHAR *checkstr1) } } -void DoCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) +void DoCountTest(const WCHAR *formatstr, int param, const WCHAR *checkstr) { WCHAR buf[512] = { 0 }; int n = -1; @@ -77,7 +77,7 @@ void DoCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) } } -void DoShortCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) +void DoShortCountTest(const WCHAR *formatstr, int param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; short int n = -1; @@ -97,7 +97,7 @@ void DoShortCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) } } -void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) +void DoCharTest(const WCHAR *formatstr, char param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -110,7 +110,7 @@ void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) } } -void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) +void DoWCharTest(const WCHAR *formatstr, WCHAR param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -123,7 +123,7 @@ void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) } } -void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) +void DoNumTest(const WCHAR *formatstr, int value, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -136,8 +136,8 @@ void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) } } -void DoI64Test(WCHAR *formatstr, INT64 param, char *paramdesc, - WCHAR *checkstr1) +void DoI64Test(const WCHAR *formatstr, INT64 param, char *paramdesc, + const WCHAR *checkstr1) { WCHAR buf[256] = { 0 }; @@ -150,8 +150,8 @@ void DoI64Test(WCHAR *formatstr, INT64 param, char *paramdesc, } } -void DoDoubleTest(WCHAR *formatstr, double value, WCHAR *checkstr1, - WCHAR *checkstr2) +void DoDoubleTest(const WCHAR *formatstr, double value, const WCHAR *checkstr1, + const WCHAR *checkstr2) { WCHAR buf[256] = { 0 }; @@ -166,8 +166,8 @@ void DoDoubleTest(WCHAR *formatstr, double value, WCHAR *checkstr1, } } -void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, - char *paramstr, WCHAR *checkstr1, WCHAR *checkstr2) +void DoArgumentPrecTest(const WCHAR *formatstr, int precision, void *param, + char *paramstr, const WCHAR *checkstr1, const WCHAR *checkstr2) { WCHAR buf[256]; @@ -182,8 +182,8 @@ void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, } } -void DoArgumentPrecDoubleTest(WCHAR *formatstr, int precision, double param, - WCHAR *checkstr1, WCHAR *checkstr2) +void DoArgumentPrecDoubleTest(const WCHAR *formatstr, int precision, double param, + const WCHAR *checkstr1, const WCHAR *checkstr2) { WCHAR buf[256]; diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test1/CMakeLists.txt index fcf816029e..c9be8c3347 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_swprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/swprintf/test1/test1.cpp index 626040d9f7..626040d9f7 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test10/CMakeLists.txt index 302c5e5923..222108393b 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_swprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/swprintf/test10/test10.cpp index 61aef593a0..61aef593a0 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test11/CMakeLists.txt index 484d57ef58..96222a5b2a 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_swprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/swprintf/test11/test11.cpp index 216f9acdbb..216f9acdbb 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test12/CMakeLists.txt index 6d45ee4646..1ffe620fed 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_swprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/swprintf/test12/test12.cpp index a41b0ddbd3..a41b0ddbd3 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test13/CMakeLists.txt index 20f6f0df7b..8699589ec9 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_swprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/swprintf/test13/test13.cpp index b99232f7ea..b99232f7ea 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test14/CMakeLists.txt index a052f60116..2a4b84805c 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_swprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/swprintf/test14/test14.cpp index bcfd6a7c24..bcfd6a7c24 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test15/CMakeLists.txt index 7bc2da122f..22382bce5f 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_swprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/swprintf/test15/test15.cpp index 215afbe093..215afbe093 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test16/CMakeLists.txt index e6ad3abd3f..462f0806cd 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_swprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/swprintf/test16/test16.cpp index 859afed8dd..859afed8dd 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test17/CMakeLists.txt index 401285b740..c5b4d44593 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_swprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/swprintf/test17/test17.cpp index 480f2b2fe1..480f2b2fe1 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test18/CMakeLists.txt index 210ab2c7ec..6cdf576966 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_swprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/swprintf/test18/test18.cpp index 1ed8cd00d8..1ed8cd00d8 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test19/CMakeLists.txt index b9d44a3031..334b7b4fa1 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_swprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/swprintf/test19/test19.cpp index 5199cc3cd9..c0346036cd 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test19/test19.cpp @@ -29,11 +29,11 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - DoArgumentPrecTest(convert("%.*s"), 2, convert("bar"), "bar", + DoArgumentPrecTest(convert("%.*s"), 2, (void*)convert("bar"), "bar", convert("ba"), convert("ba")); - DoArgumentPrecTest(convert("%.*S"), 2, "bar", "bar", convert("ba"), + DoArgumentPrecTest(convert("%.*S"), 2, (void*)"bar", "bar", convert("ba"), convert("ba")); - DoArgumentPrecTest(convert("%.*n"), 3, &n, "pointer to int", convert(""), + DoArgumentPrecTest(convert("%.*n"), 3, (void*)&n, "pointer to int", convert(""), convert("")); if (n != 0) { diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test2/CMakeLists.txt index 84446d5f6d..af2b13e4c7 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_swprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/swprintf/test2/test2.cpp index deffd3edd7..deffd3edd7 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test3/CMakeLists.txt index 6dbd8a3c36..14b81f4ac8 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_swprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/swprintf/test3/test3.cpp index 42875c0640..42875c0640 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test4/CMakeLists.txt index a665948c47..e153e6b02f 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_swprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/swprintf/test4/test4.cpp index 02cc3f9005..02cc3f9005 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test5/CMakeLists.txt index 8268ec2963..967ccbb992 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_swprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/swprintf/test5/test5.cpp index e85adc120e..e85adc120e 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test6/CMakeLists.txt index 6a90c0b88e..806211a992 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_swprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/swprintf/test6/test6.cpp index ecd6374264..ecd6374264 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test7/CMakeLists.txt index 2b1c30cb56..cf563799d9 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_swprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/swprintf/test7/test7.cpp index e231ada3d2..e231ada3d2 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test8/CMakeLists.txt index 281e6df097..e8fcf66157 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_swprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/swprintf/test8/test8.cpp index b4be28e78d..b4be28e78d 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swprintf/test9/CMakeLists.txt index 054b40a998..c616348766 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_swprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/swprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/swprintf/test9/test9.cpp index 2f5429e5fd..2f5429e5fd 100644 --- a/src/pal/tests/palsuite/c_runtime/swprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/swprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/swscanf.h b/src/pal/tests/palsuite/c_runtime/swscanf/swscanf.h index 1cac450cf4..6e40332fa6 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/swscanf.h +++ b/src/pal/tests/palsuite/c_runtime/swscanf/swscanf.h @@ -14,7 +14,7 @@ #ifndef __SWSCANF_H__ #define __SWSCANF_H__ -void DoVoidTest(WCHAR *inputstr, WCHAR *formatstr) +void DoVoidTest(WCHAR *inputstr, const WCHAR *formatstr) { char buf[256] = { 0 }; int i; @@ -40,7 +40,7 @@ void DoVoidTest(WCHAR *inputstr, WCHAR *formatstr) } -void DoStrTest(WCHAR *inputstr, WCHAR *formatstr, char *checkstr) +void DoStrTest(WCHAR *inputstr, const WCHAR *formatstr, const char *checkstr) { char buf[256] = { 0 }; int ret; @@ -63,7 +63,7 @@ void DoStrTest(WCHAR *inputstr, WCHAR *formatstr, char *checkstr) } -void DoWStrTest(WCHAR *inputstr, WCHAR *formatstr, WCHAR *checkstr) +void DoWStrTest(WCHAR *inputstr, const WCHAR *formatstr, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; int ret; @@ -86,7 +86,7 @@ void DoWStrTest(WCHAR *inputstr, WCHAR *formatstr, WCHAR *checkstr) } -void DoNumTest(WCHAR *inputstr, WCHAR *formatstr, int checknum) +void DoNumTest(WCHAR *inputstr, const WCHAR *formatstr, int checknum) { int num = 0; int ret; @@ -107,7 +107,7 @@ void DoNumTest(WCHAR *inputstr, WCHAR *formatstr, int checknum) } } -void DoShortNumTest(WCHAR *inputstr, WCHAR *formatstr, short checknum) +void DoShortNumTest(WCHAR *inputstr, const WCHAR *formatstr, short checknum) { short num = 0; int ret; @@ -128,7 +128,7 @@ void DoShortNumTest(WCHAR *inputstr, WCHAR *formatstr, short checknum) } } -void DoI64NumTest(WCHAR *inputstr, WCHAR *formatstr, INT64 checknum) +void DoI64NumTest(WCHAR *inputstr, const WCHAR *formatstr, INT64 checknum) { char buf[256]; char check[256]; @@ -153,7 +153,7 @@ void DoI64NumTest(WCHAR *inputstr, WCHAR *formatstr, INT64 checknum) } } -void DoCharTest(WCHAR *inputstr, WCHAR*formatstr, char* checkchars, int numchars) +void DoCharTest(WCHAR *inputstr, const WCHAR *formatstr, char* checkchars, int numchars) { char buf[256]; int ret; @@ -187,7 +187,7 @@ void DoCharTest(WCHAR *inputstr, WCHAR*formatstr, char* checkchars, int numchars } } -void DoWCharTest(WCHAR *inputstr, WCHAR *formatstr, WCHAR *checkchars, int numchars) +void DoWCharTest(WCHAR *inputstr, const WCHAR *formatstr, const WCHAR *checkchars, int numchars) { WCHAR buf[256]; int ret; @@ -223,7 +223,7 @@ void DoWCharTest(WCHAR *inputstr, WCHAR *formatstr, WCHAR *checkchars, int numch } -void DoFloatTest(WCHAR *inputstr, WCHAR *formatstr, float checkval) +void DoFloatTest(WCHAR *inputstr, const WCHAR *formatstr, float checkval) { char buf[256] = { 0 }; float val; diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test1/CMakeLists.txt index 030aaaf709..44b8939248 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_swscanf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/swscanf/test1/test1.cpp index 66136e57c5..66136e57c5 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test10/CMakeLists.txt index f7c8b284ff..27d42114a9 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_swscanf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/swscanf/test10/test10.cpp index a8628e0de1..a8628e0de1 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test11/CMakeLists.txt index 17066f31b8..1ca9224ec0 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_swscanf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/swscanf/test11/test11.cpp index f7eb4af46f..f7eb4af46f 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test12/CMakeLists.txt index 95f5174ecb..44d70f47ae 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_swscanf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/swscanf/test12/test12.cpp index f5f8bbdf8a..f5f8bbdf8a 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test13/CMakeLists.txt index 47abc50313..add0cbfe18 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_swscanf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/swscanf/test13/test13.cpp index 1bb0b7b21c..1bb0b7b21c 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test14/CMakeLists.txt index a470436ce7..126e087b1c 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_swscanf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/swscanf/test14/test14.cpp index 80581b726f..80581b726f 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test15/CMakeLists.txt index d89650b12c..7c2da2bdf8 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_swscanf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/swscanf/test15/test15.cpp index 9b7d277e17..9b7d277e17 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test16/CMakeLists.txt index a2a00f11b6..ba28c4dc2f 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_swscanf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/swscanf/test16/test16.cpp index c83b64468b..c83b64468b 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test17/CMakeLists.txt index c224f5d9a6..225ce868ed 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_swscanf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/swscanf/test17/test17.cpp index 9023f7020a..9023f7020a 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test2/CMakeLists.txt index a5335ddb48..15411ecf21 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_swscanf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/swscanf/test2/test2.cpp index 8fbd3f86ba..8fbd3f86ba 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test3/CMakeLists.txt index 5c229c26d3..927026107a 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_swscanf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/swscanf/test3/test3.cpp index 8b05df20f2..8b05df20f2 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test4/CMakeLists.txt index 5e281aaf34..eec701645b 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_swscanf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/swscanf/test4/test4.cpp index d63d25b7d0..d63d25b7d0 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test5/CMakeLists.txt index 8b259aa78d..3f022db16c 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_swscanf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/swscanf/test5/test5.cpp index 8ae2d81da6..8ae2d81da6 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test6/CMakeLists.txt index c3fd8696ab..c55666d95c 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_swscanf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/swscanf/test6/test6.cpp index 982f799cfc..982f799cfc 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test7/CMakeLists.txt index 00541306df..adb0abe80d 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_swscanf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/swscanf/test7/test7.cpp index 45e9400549..45e9400549 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test8/CMakeLists.txt index d6aa631ab9..a69c552337 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_swscanf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/swscanf/test8/test8.cpp index a244de748f..a244de748f 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/swscanf/test9/CMakeLists.txt index 4f7595a205..70a9fe2064 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_swscanf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/swscanf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/swscanf/test9/test9.cpp index e289d26f58..e289d26f58 100644 --- a/src/pal/tests/palsuite/c_runtime/swscanf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/swscanf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/tan/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/tan/test1/CMakeLists.txt index 665fc22d5e..cea661f2bb 100644 --- a/src/pal/tests/palsuite/c_runtime/tan/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/tan/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_tan_test1 diff --git a/src/pal/tests/palsuite/c_runtime/tan/test1/test1.c b/src/pal/tests/palsuite/c_runtime/tan/test1/test1.cpp index 443e5da6d6..443e5da6d6 100644 --- a/src/pal/tests/palsuite/c_runtime/tan/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/tan/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/tanh/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/tanh/test1/CMakeLists.txt index f8e439dd95..9fe926d441 100644 --- a/src/pal/tests/palsuite/c_runtime/tanh/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/tanh/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_tanh_test1 diff --git a/src/pal/tests/palsuite/c_runtime/tanh/test1/test1.c b/src/pal/tests/palsuite/c_runtime/tanh/test1/test1.cpp index 3b8f87964a..3b8f87964a 100644 --- a/src/pal/tests/palsuite/c_runtime/tanh/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/tanh/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/time/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/time/test1/CMakeLists.txt index d495266cef..64df144557 100644 --- a/src/pal/tests/palsuite/c_runtime/time/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/time/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_time_test1 diff --git a/src/pal/tests/palsuite/c_runtime/time/test1/test1.c b/src/pal/tests/palsuite/c_runtime/time/test1/test1.cpp index c668bf38e7..c668bf38e7 100644 --- a/src/pal/tests/palsuite/c_runtime/time/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/time/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/tolower/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/tolower/test1/CMakeLists.txt index 537f239cf8..214a509010 100644 --- a/src/pal/tests/palsuite/c_runtime/tolower/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/tolower/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_tolower_test1 diff --git a/src/pal/tests/palsuite/c_runtime/tolower/test1/test1.c b/src/pal/tests/palsuite/c_runtime/tolower/test1/test1.cpp index cab623d3f9..cab623d3f9 100644 --- a/src/pal/tests/palsuite/c_runtime/tolower/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/tolower/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/toupper/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/toupper/test1/CMakeLists.txt index e5aa375a9b..3dd536c590 100644 --- a/src/pal/tests/palsuite/c_runtime/toupper/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/toupper/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_toupper_test1 diff --git a/src/pal/tests/palsuite/c_runtime/toupper/test1/test1.c b/src/pal/tests/palsuite/c_runtime/toupper/test1/test1.cpp index c580699e3b..c580699e3b 100644 --- a/src/pal/tests/palsuite/c_runtime/toupper/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/toupper/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/towlower/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/towlower/test1/CMakeLists.txt index 2a3e6a07ef..77a46344d4 100644 --- a/src/pal/tests/palsuite/c_runtime/towlower/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/towlower/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_towlower_test1 diff --git a/src/pal/tests/palsuite/c_runtime/towlower/test1/test1.c b/src/pal/tests/palsuite/c_runtime/towlower/test1/test1.cpp index 5f2457a5fe..5f2457a5fe 100644 --- a/src/pal/tests/palsuite/c_runtime/towlower/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/towlower/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/towupper/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/towupper/test1/CMakeLists.txt index 537efbe0fa..6a2f813cc9 100644 --- a/src/pal/tests/palsuite/c_runtime/towupper/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/towupper/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_towupper_test1 diff --git a/src/pal/tests/palsuite/c_runtime/towupper/test1/test1.c b/src/pal/tests/palsuite/c_runtime/towupper/test1/test1.cpp index 63f051fa66..63f051fa66 100644 --- a/src/pal/tests/palsuite/c_runtime/towupper/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/towupper/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/ungetc/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/ungetc/test1/CMakeLists.txt index da19397e2c..0286f99b77 100644 --- a/src/pal/tests/palsuite/c_runtime/ungetc/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/ungetc/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - ungetc.c + ungetc.cpp ) add_executable(paltest_ungetc_test1 diff --git a/src/pal/tests/palsuite/c_runtime/ungetc/test1/ungetc.c b/src/pal/tests/palsuite/c_runtime/ungetc/test1/ungetc.cpp index 397e42ac64..397e42ac64 100644 --- a/src/pal/tests/palsuite/c_runtime/ungetc/test1/ungetc.c +++ b/src/pal/tests/palsuite/c_runtime/ungetc/test1/ungetc.cpp diff --git a/src/pal/tests/palsuite/c_runtime/ungetc/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/ungetc/test2/CMakeLists.txt index 7b63423628..0710074bd0 100644 --- a/src/pal/tests/palsuite/c_runtime/ungetc/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/ungetc/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - ungetc.c + ungetc.cpp ) add_executable(paltest_ungetc_test2 diff --git a/src/pal/tests/palsuite/c_runtime/ungetc/test2/ungetc.c b/src/pal/tests/palsuite/c_runtime/ungetc/test2/ungetc.cpp index cbc8102eec..cbc8102eec 100644 --- a/src/pal/tests/palsuite/c_runtime/ungetc/test2/ungetc.c +++ b/src/pal/tests/palsuite/c_runtime/ungetc/test2/ungetc.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test1/CMakeLists.txt index 4c967fbc5b..fcff4a2074 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_vfprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test1/test1.cpp index 302c914e3a..302c914e3a 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test10/CMakeLists.txt index e154107e36..97c7b167ab 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_vfprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test10/test10.cpp index ecb4b0314a..ecb4b0314a 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test11/CMakeLists.txt index f51f379bcd..9250eb957d 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_vfprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test11/test11.cpp index 5f7bc118cc..5f7bc118cc 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test12/CMakeLists.txt index 3ef68cff70..53d3488b4a 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_vfprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test12/test12.cpp index 0bf61d3ecc..0bf61d3ecc 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test13/CMakeLists.txt index cd34f6649c..c35813b420 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_vfprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test13/test13.cpp index 1e42ce9e8d..1e42ce9e8d 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test14/CMakeLists.txt index 396a4631c5..bd91f509b5 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_vfprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test14/test14.cpp index 82f247430f..82f247430f 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test15/CMakeLists.txt index b9ddbe3b4a..30003b82f8 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_vfprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test15/test15.cpp index 53cc2ceb87..53cc2ceb87 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test16/CMakeLists.txt index 0fd4177ed8..a287f120a0 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_vfprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test16/test16.cpp index 2b7674bb94..2b7674bb94 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test17/CMakeLists.txt index afc0b3828d..cf1afd9d2d 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_vfprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test17/test17.cpp index 956be15f6f..956be15f6f 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test18/CMakeLists.txt index 9e373b999e..143eade9b3 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_vfprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test18/test18.cpp index c61c8cbdab..c61c8cbdab 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test19/CMakeLists.txt index 3120c9117f..452d929b7d 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_vfprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test19/test19.cpp index e88ce23663..d8e8f9301d 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test19/test19.cpp @@ -28,10 +28,10 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - DoArgumentPrecTest("%.*s", 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest("%.*S", 2, convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest("%.*s", 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest("%.*S", 2, (void*)convert("bar"), "bar", "ba", "ba"); - DoArgumentPrecTest("%.*n ", 3, &n, "pointer to int", " ", " "); + DoArgumentPrecTest("%.*n ", 3, (void*)&n, "pointer to int", " ", " "); if (n != 0) { Fail("ERROR: Expected count parameter to resolve to %d, got %X\n", diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test2/CMakeLists.txt index 6e700090d6..b18fb712c6 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_vfprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test2/test2.cpp index d01117f047..d01117f047 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test3/CMakeLists.txt index 1a14d85603..a8f7eb1991 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_vfprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test3/test3.cpp index 0081daa426..0081daa426 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test4/CMakeLists.txt index c1285942bc..60c31693a5 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_vfprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test4/test4.cpp index d24f08d6e0..d24f08d6e0 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test5/CMakeLists.txt index 0cccdfd630..5f516fec6a 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_vfprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test5/test5.cpp index 44f21b61db..44f21b61db 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test6/CMakeLists.txt index 2c036a45ae..7f0cc710af 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_vfprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test6/test6.cpp index 36c6fe51ca..36c6fe51ca 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test7/CMakeLists.txt index ca483af773..a2cd9a2e8f 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_vfprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test7/test7.cpp index a9cfe319bd..a9cfe319bd 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test8/CMakeLists.txt index 89459b4e93..a7b20ee43e 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_vfprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test8/test8.cpp index 5cef99741a..5cef99741a 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vfprintf/test9/CMakeLists.txt index 3e3b5b99ed..242b635f93 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_vfprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/vfprintf/test9/test9.cpp index 45d0dc7a9e..45d0dc7a9e 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vfprintf/vfprintf.h b/src/pal/tests/palsuite/c_runtime/vfprintf/vfprintf.h index f4ae7a53fa..7901b08b0d 100644 --- a/src/pal/tests/palsuite/c_runtime/vfprintf/vfprintf.h +++ b/src/pal/tests/palsuite/c_runtime/vfprintf/vfprintf.h @@ -14,7 +14,7 @@ #ifndef __vfprintf_H__ #define __vfprintf_H__ -int DoVfprintf(FILE *fp, char *format, ...) +int DoVfprintf(FILE *fp, const char *format, ...) { int retVal; va_list arglist; @@ -26,7 +26,7 @@ int DoVfprintf(FILE *fp, char *format, ...) return (retVal); } -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -57,7 +57,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) fclose(fp); } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -89,8 +89,8 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } -void DoPointerTest(char *formatstr, void* param, char* paramstr, - char *checkstr1) +void DoPointerTest(const char *formatstr, void* param, char* paramstr, + const char *checkstr1) { FILE *fp; char buf[256] = { 0 }; @@ -130,7 +130,7 @@ void DoPointerTest(char *formatstr, void* param, char* paramstr, -void DoCountTest(char *formatstr, int param, char *checkstr) +void DoCountTest(const char *formatstr, int param, const char *checkstr) { FILE *fp; char buf[512] = { 0 }; @@ -173,7 +173,7 @@ void DoCountTest(char *formatstr, int param, char *checkstr) } } -void DoShortCountTest(char *formatstr, int param, char *checkstr) +void DoShortCountTest(const char *formatstr, int param, const char *checkstr) { FILE *fp; char buf[512] = { 0 }; @@ -217,7 +217,7 @@ void DoShortCountTest(char *formatstr, int param, char *checkstr) } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -248,7 +248,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) fclose(fp); } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -279,7 +279,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) fclose(fp); } -void DoNumTest(char *formatstr, int value, char *checkstr) +void DoNumTest(const char *formatstr, int value, const char *checkstr) { FILE *fp; char buf[256] = { 0 }; @@ -310,7 +310,7 @@ void DoNumTest(char *formatstr, int value, char *checkstr) fclose(fp); } -void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1) +void DoI64Test(const char *formatstr, INT64 value, char *valuestr, const char *checkstr1) { FILE *fp; char buf[256] = { 0 }; @@ -341,8 +341,8 @@ void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr1) fclose(fp); } -void DoDoubleTest(char *formatstr, double value, char *checkstr1, - char *checkstr2) +void DoDoubleTest(const char *formatstr, double value, const char *checkstr1, + const char *checkstr2) { FILE *fp; char buf[256] = { 0 }; @@ -376,8 +376,8 @@ void DoDoubleTest(char *formatstr, double value, char *checkstr1, } -void DoArgumentPrecTest(char *formatstr, int precision, void *param, - char *paramstr, char *checkstr1, char *checkstr2) +void DoArgumentPrecTest(const char *formatstr, int precision, void *param, + char *paramstr, const char *checkstr1, const char *checkstr2) { FILE *fp; char buf[256]; @@ -418,8 +418,8 @@ void DoArgumentPrecTest(char *formatstr, int precision, void *param, } -void DoArgumentPrecDoubleTest(char *formatstr, int precision, double param, - char *checkstr1, char *checkstr2) +void DoArgumentPrecDoubleTest(const char *formatstr, int precision, double param, + const char *checkstr1, const char *checkstr2) { FILE *fp; char buf[256]; diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test1/CMakeLists.txt index eabdf87393..9d866e16a2 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_vprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/vprintf/test1/test1.cpp index 404d7a0dc9..404d7a0dc9 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test10/CMakeLists.txt index 47a21d909a..4ed04b46c6 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_vprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/vprintf/test10/test10.cpp index b363d7c02c..b363d7c02c 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test11/CMakeLists.txt index 4c750b72ac..5dc3c6dc69 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_vprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/vprintf/test11/test11.cpp index f5157ac99f..f5157ac99f 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test12/CMakeLists.txt index 1feb886fc1..a8104296c4 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_vprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/vprintf/test12/test12.cpp index 703a8c4fdc..703a8c4fdc 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test13/CMakeLists.txt index cd7535a1ad..df98081ed7 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_vprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/vprintf/test13/test13.cpp index ecb83ba38d..ecb83ba38d 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test14/CMakeLists.txt index 82cfd68ecf..b903d4e241 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_vprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/vprintf/test14/test14.cpp index 536c1950e3..536c1950e3 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test15/CMakeLists.txt index 29a134d48c..659ed9cb44 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_vprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/vprintf/test15/test15.cpp index 9aff6e457d..9aff6e457d 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test16/CMakeLists.txt index 7fbf43ac84..b2f7fe8b78 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_vprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/vprintf/test16/test16.cpp index 66e9afe2d7..66e9afe2d7 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test17/CMakeLists.txt index 25970cba15..76cfc9ad06 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_vprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/vprintf/test17/test17.cpp index d36a084903..d36a084903 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test18/CMakeLists.txt index 45676b93dd..633fb7ee51 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_vprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/vprintf/test18/test18.cpp index 6fde79b5fb..6fde79b5fb 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test19/CMakeLists.txt index 25bc2fccd1..1a6256ad0b 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_vprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/vprintf/test19/test19.cpp index d79f2e2591..a3e0877369 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test19/test19.cpp @@ -28,10 +28,10 @@ int __cdecl main(int argc, char *argv[]) return FAIL; } - DoArgumentPrecTest("%.*s", 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest("%.*S", 2, convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest("%.*s", 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest("%.*S", 2, (void*)convert("bar"), "bar", "ba", "ba"); - DoArgumentPrecTest("%.*n", 3, &n, "pointer to int", "", ""); + DoArgumentPrecTest("%.*n", 3, (void*)&n, "pointer to int", "", ""); if (n != 0) { Fail("ERROR: Expected count parameter to resolve to %d, got %X\n", diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test2/CMakeLists.txt index 6820069cb9..41e2073477 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_vprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/vprintf/test2/test2.cpp index 4d9c9bc6f5..4d9c9bc6f5 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test3/CMakeLists.txt index 676d19bf7a..8570666b11 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_vprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/vprintf/test3/test3.cpp index 5376c56b76..5376c56b76 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test4/CMakeLists.txt index 9ddb087e83..06b582b5ee 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_vprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/vprintf/test4/test4.cpp index 3b66cde22e..3b66cde22e 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test5/CMakeLists.txt index f453bb66ee..3a1828a28c 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_vprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/vprintf/test5/test5.cpp index c9e2901230..c9e2901230 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test6/CMakeLists.txt index 1ce8d5aa4c..2dac7703e6 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_vprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/vprintf/test6/test6.cpp index 6a83cccea6..6a83cccea6 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test7/CMakeLists.txt index 5627fe4c1e..5a520045a9 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_vprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/vprintf/test7/test7.cpp index 5096ace42c..5096ace42c 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test8/CMakeLists.txt index 0131e4943e..18e4e3a0c9 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_vprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/vprintf/test8/test8.cpp index 2683339ece..2683339ece 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vprintf/test9/CMakeLists.txt index c70631f9dc..8bcbe81f51 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_vprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/vprintf/test9/test9.cpp index 8545bc760e..8545bc760e 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/vprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vprintf/vprintf.h b/src/pal/tests/palsuite/c_runtime/vprintf/vprintf.h index 477db32f4d..fcd8f80370 100644 --- a/src/pal/tests/palsuite/c_runtime/vprintf/vprintf.h +++ b/src/pal/tests/palsuite/c_runtime/vprintf/vprintf.h @@ -14,7 +14,7 @@ #ifndef __vprintf_H__ #define __vprintf_H__ -int DoVprintf(char *format, ...) +int DoVprintf(const char *format, ...) { int retVal; va_list arglist; @@ -26,7 +26,7 @@ int DoVprintf(char *format, ...) return (retVal); } -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { int ret; @@ -38,7 +38,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) } } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { int ret; @@ -50,8 +50,8 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } } -void DoPointerTest(char *formatstr, void* param, char* paramstr, - char *checkstr1) +void DoPointerTest(const char *formatstr, void* param, char* paramstr, + const char *checkstr1) { int ret; @@ -63,7 +63,7 @@ void DoPointerTest(char *formatstr, void* param, char* paramstr, } } -void DoCountTest(char *formatstr, int param, char *checkstr) +void DoCountTest(const char *formatstr, int param, const char *checkstr) { int ret; int n = -1; @@ -82,7 +82,7 @@ void DoCountTest(char *formatstr, int param, char *checkstr) } } -void DoShortCountTest(char *formatstr, int param, char *checkstr) +void DoShortCountTest(const char *formatstr, int param, const char *checkstr) { int ret; short int n = -1; @@ -102,7 +102,7 @@ void DoShortCountTest(char *formatstr, int param, char *checkstr) } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { int ret; @@ -114,7 +114,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) } } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { int ret; @@ -126,7 +126,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) } } -void DoNumTest(char *formatstr, int param, char *checkstr) +void DoNumTest(const char *formatstr, int param, const char *checkstr) { int ret; @@ -138,7 +138,7 @@ void DoNumTest(char *formatstr, int param, char *checkstr) } } -void DoI64Test(char *formatstr, INT64 param, char *valuestr, char *checkstr1) +void DoI64Test(const char *formatstr, INT64 param, char *valuestr, const char *checkstr1) { int ret; @@ -150,8 +150,8 @@ void DoI64Test(char *formatstr, INT64 param, char *valuestr, char *checkstr1) } } -void DoDoubleTest(char *formatstr, double param, char *checkstr1, - char *checkstr2) +void DoDoubleTest(const char *formatstr, double param, const char *checkstr1, + const char *checkstr2) { int ret; @@ -163,8 +163,8 @@ void DoDoubleTest(char *formatstr, double param, char *checkstr1, } } -void DoArgumentPrecTest(char *formatstr, int precision, void *param, - char *paramstr, char *checkstr1, char *checkstr2) +void DoArgumentPrecTest(const char *formatstr, int precision, void *param, + char *paramstr, const char *checkstr1, const char *checkstr2) { int ret; @@ -176,8 +176,8 @@ void DoArgumentPrecTest(char *formatstr, int precision, void *param, } } -void DoArgumentPrecDoubleTest(char *formatstr, int precision, double param, - char *checkstr1, char *checkstr2) +void DoArgumentPrecDoubleTest(const char *formatstr, int precision, double param, + const char *checkstr1, const char *checkstr2) { int ret; diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test1/CMakeLists.txt index 4f0872eccc..6861157c1b 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_vsprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test1/test1.cpp index 2007fefc5b..2007fefc5b 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test10/CMakeLists.txt index d32de01ba1..6f535a5098 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_vsprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test10/test10.cpp index 791213fccc..791213fccc 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test11/CMakeLists.txt index ce67444c39..3fa628f77d 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_vsprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test11/test11.cpp index e0af94981b..e0af94981b 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test12/CMakeLists.txt index fe6ccb8399..f34f76abc5 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_vsprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test12/test12.cpp index f86ddcade8..f86ddcade8 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test13/CMakeLists.txt index 97fdf8cdd0..df23693f10 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_vsprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test13/test13.cpp index 36e7825531..36e7825531 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test14/CMakeLists.txt index 2851a8893e..394b5ab97c 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_vsprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test14/test14.cpp index 360fafc37f..360fafc37f 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test15/CMakeLists.txt index 6fb1d321b8..4793b45663 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_vsprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test15/test15.cpp index a5b4c94226..a5b4c94226 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test16/CMakeLists.txt index ccc21378fc..6a0a52ddf7 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_vsprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test16/test16.cpp index a7258db9d6..a7258db9d6 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test17/CMakeLists.txt index 4c9dcd986f..4e220dab77 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_vsprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test17/test17.cpp index 0ad246a1ae..0ad246a1ae 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test18/CMakeLists.txt index 2e8610d4a5..4dd68c2987 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_vsprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test18/test18.cpp index 9a45305562..9a45305562 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test19/CMakeLists.txt index 92e39ab597..3156a59a15 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_vsprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test19/test19.cpp index 18590ed51b..698ff36e35 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test19/test19.cpp @@ -27,8 +27,8 @@ int __cdecl main(int argc, char *argv[]) } - DoArgumentPrecTest("%.*s", 2, "bar", "bar", "ba", "ba"); - DoArgumentPrecTest("%.*S", 2, convert("bar"), "bar", "ba", "ba"); + DoArgumentPrecTest("%.*s", 2, (void*)"bar", "bar", "ba", "ba"); + DoArgumentPrecTest("%.*S", 2, (void*)convert("bar"), "bar", "ba", "ba"); DoArgumentPrecTest("%.*c", 0, (void*)'a', "a", "a", "a"); DoArgumentPrecTest("%.*c", 4, (void*)'a', "a", "a", "a"); DoArgumentPrecTest("%.*C", 0, (void*)'a', "a", "a", "a"); diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test2/CMakeLists.txt index 2308bc2573..210224f0f1 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_vsprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test2/test2.cpp index fbd4b41068..fbd4b41068 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test3/CMakeLists.txt index aef24171fc..5581051f9f 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_vsprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test3/test3.cpp index 742370ebe9..742370ebe9 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test4/CMakeLists.txt index 9570255475..88817fcffb 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_vsprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test4/test4.cpp index dc43a9e2c7..dc43a9e2c7 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test5/CMakeLists.txt index 34a3e6243f..6d14bf76bf 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_vsprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test5/test5.cpp index e630d8863b..e630d8863b 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test6/CMakeLists.txt index dccca0b2b7..606fe3b965 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_vsprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test6/test6.cpp index 0d38a3a114..0d38a3a114 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test7/CMakeLists.txt index 7f18de056e..2dee276968 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_vsprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test7/test7.cpp index c9f87d4343..c9f87d4343 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test8/CMakeLists.txt index 34c92e1045..8dac76fc3a 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_vsprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test8/test8.cpp index e741d1da8b..e741d1da8b 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vsprintf/test9/CMakeLists.txt index 1fe177de95..95f0faad87 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_vsprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/vsprintf/test9/test9.cpp index e1f7c84195..e1f7c84195 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vsprintf/vsprintf.h b/src/pal/tests/palsuite/c_runtime/vsprintf/vsprintf.h index 10648d896f..7b04a777ca 100644 --- a/src/pal/tests/palsuite/c_runtime/vsprintf/vsprintf.h +++ b/src/pal/tests/palsuite/c_runtime/vsprintf/vsprintf.h @@ -26,7 +26,7 @@ int testvsp(char* buf, const char* format, ...) return (retVal); } -void DoStrTest(char *formatstr, char* param, char *checkstr) +void DoStrTest(const char *formatstr, char* param, const char *checkstr) { char buf[256] = { 0 }; @@ -39,7 +39,7 @@ void DoStrTest(char *formatstr, char* param, char *checkstr) } } -void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) +void DoWStrTest(const char *formatstr, WCHAR* param, const char *checkstr) { char buf[256] = { 0 }; @@ -53,7 +53,7 @@ void DoWStrTest(char *formatstr, WCHAR* param, char *checkstr) } -void DoCharTest(char *formatstr, char param, char *checkstr) +void DoCharTest(const char *formatstr, char param, const char *checkstr) { char buf[256] = { 0 }; @@ -66,7 +66,7 @@ void DoCharTest(char *formatstr, char param, char *checkstr) } } -void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) +void DoWCharTest(const char *formatstr, WCHAR param, const char *checkstr) { char buf[256] = { 0 }; @@ -79,7 +79,7 @@ void DoWCharTest(char *formatstr, WCHAR param, char *checkstr) } } -void DoNumTest(char *formatstr, int value, char *checkstr) +void DoNumTest(const char *formatstr, int value, const char *checkstr) { char buf[256] = { 0 }; @@ -92,7 +92,7 @@ void DoNumTest(char *formatstr, int value, char *checkstr) } } -void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr) +void DoI64Test(const char *formatstr, INT64 value, char *valuestr, const char *checkstr) { char buf[256] = { 0 }; @@ -104,7 +104,7 @@ void DoI64Test(char *formatstr, INT64 value, char *valuestr, char *checkstr) valuestr, formatstr, checkstr, buf); } } -void DoDoubleTest(char *formatstr, double value, char *checkstr1, char +void DoDoubleTest(const char *formatstr, double value, const char *checkstr1, char *checkstr2) { char buf[256] = { 0 }; @@ -119,8 +119,8 @@ void DoDoubleTest(char *formatstr, double value, char *checkstr1, char } } /*FROM TEST 9*/ -void DoArgumentPrecTest(char *formatstr, int precision, void *param, - char *paramstr, char *checkstr1, char *checkstr2) +void DoArgumentPrecTest(const char *formatstr, int precision, void *param, + char *paramstr, const char *checkstr1, const char *checkstr2) { char buf[256]; @@ -135,8 +135,8 @@ void DoArgumentPrecTest(char *formatstr, int precision, void *param, } -void DoArgumentPrecDoubleTest(char *formatstr, int precision, double param, - char *checkstr1, char *checkstr2) +void DoArgumentPrecDoubleTest(const char *formatstr, int precision, double param, + const char *checkstr1, const char *checkstr2) { char buf[256]; @@ -150,8 +150,8 @@ void DoArgumentPrecDoubleTest(char *formatstr, int precision, double param, } } /*FROM TEST4*/ -void DoPointerTest(char *formatstr, void* param, char* paramstr, - char *checkstr1) +void DoPointerTest(const char *formatstr, void* param, char* paramstr, + const char *checkstr1) { char buf[256] = { 0 }; @@ -164,8 +164,8 @@ void DoPointerTest(char *formatstr, void* param, char* paramstr, } } -void DoI64DoubleTest(char *formatstr, INT64 value, char *valuestr, - char *checkstr1) +void DoI64DoubleTest(const char *formatstr, INT64 value, char *valuestr, + const char *checkstr1) { char buf[256] = { 0 }; @@ -178,7 +178,7 @@ void DoI64DoubleTest(char *formatstr, INT64 value, char *valuestr, } } -void DoTest(char *formatstr, int param, char *checkstr) +void DoTest(const char *formatstr, int param, const char *checkstr) { char buf[256] = { 0 }; int n = -1; @@ -196,7 +196,7 @@ void DoTest(char *formatstr, int param, char *checkstr) } } -void DoShortTest(char *formatstr, int param, char *checkstr) +void DoShortTest(const char *formatstr, int param, const char *checkstr) { char buf[256] = { 0 }; short int n = -1; diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test1/CMakeLists.txt index 97fbeb4e28..1d6233744a 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_vswprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test1/test1.cpp index d386ce104f..d386ce104f 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test10/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test10/CMakeLists.txt index 06c11f68ca..e5301427eb 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test10/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test10/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test10.c + test10.cpp ) add_executable(paltest_vswprintf_test10 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test10/test10.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test10/test10.cpp index 7f316e28f6..7f316e28f6 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test10/test10.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test10/test10.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test11/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test11/CMakeLists.txt index 5237ba4e1d..1cfadb9300 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test11/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test11/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test11.c + test11.cpp ) add_executable(paltest_vswprintf_test11 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test11/test11.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test11/test11.cpp index 608069f829..608069f829 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test11/test11.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test11/test11.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test12/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test12/CMakeLists.txt index 26199c3dcc..f5a582a970 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test12/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test12/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test12.c + test12.cpp ) add_executable(paltest_vswprintf_test12 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test12/test12.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test12/test12.cpp index 36b203853a..36b203853a 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test12/test12.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test12/test12.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test13/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test13/CMakeLists.txt index d0acd98d64..5571d7336f 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test13/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test13/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test13.c + test13.cpp ) add_executable(paltest_vswprintf_test13 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test13/test13.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test13/test13.cpp index 63dc36a960..63dc36a960 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test13/test13.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test13/test13.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test14/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test14/CMakeLists.txt index 06c12674a4..234029ead4 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test14/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test14/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test14.c + test14.cpp ) add_executable(paltest_vswprintf_test14 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test14/test14.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test14/test14.cpp index bb4ab16a54..bb4ab16a54 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test14/test14.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test14/test14.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test15/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test15/CMakeLists.txt index 05dc41b0d8..b705268bc7 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test15/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test15/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test15.c + test15.cpp ) add_executable(paltest_vswprintf_test15 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test15/test15.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test15/test15.cpp index 6296220c4e..6296220c4e 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test15/test15.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test15/test15.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test16/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test16/CMakeLists.txt index 3c42755043..da296bcf32 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test16/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test16/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test16.c + test16.cpp ) add_executable(paltest_vswprintf_test16 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test16/test16.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test16/test16.cpp index 3a2059a491..3a2059a491 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test16/test16.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test16/test16.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test17/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test17/CMakeLists.txt index b94c466d5f..02234c1672 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test17/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test17/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test17.c + test17.cpp ) add_executable(paltest_vswprintf_test17 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test17/test17.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test17/test17.cpp index 95e3bd9995..95e3bd9995 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test17/test17.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test17/test17.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test18/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test18/CMakeLists.txt index 57cc8ccb03..0c0e5b566b 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test18/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test18/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test18.c + test18.cpp ) add_executable(paltest_vswprintf_test18 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test18/test18.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test18/test18.cpp index ae7ae4c44b..ae7ae4c44b 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test18/test18.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test18/test18.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test19/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test19/CMakeLists.txt index 2187b58727..066db8ab84 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test19/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test19/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test19.c + test19.cpp ) add_executable(paltest_vswprintf_test19 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test19/test19.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test19/test19.cpp index c00185be6d..1d1c5656b2 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test19/test19.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test19/test19.cpp @@ -67,7 +67,7 @@ int __cdecl main(int argc, char *argv[]) if (PAL_Initialize(argc, argv) != 0) return(FAIL); - DoArgumentPrecTest(convert("%.*s"), 2, convert("bar"), convert("bar"), + DoArgumentPrecTest(convert("%.*s"), 2, (void*)convert("bar"), convert("bar"), convert("ba"), convert("ba")); DoArgumentPrecTest(convert("%.*c"), 0, (void*)'a', convert("a"), convert("a"), convert("a")); diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test2/CMakeLists.txt index 295448cb0c..abfceca9e2 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_vswprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test2/test2.cpp index 491d99f0cf..491d99f0cf 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test3/CMakeLists.txt index 1fb6272ae7..7f4798dbc5 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_vswprintf_test3 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test3/test3.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test3/test3.cpp index 1eb0b65ebe..1eb0b65ebe 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test4/CMakeLists.txt index cae0806e03..05701ac179 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_vswprintf_test4 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test4/test4.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test4/test4.cpp index 5c9047b5a7..5c9047b5a7 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test5/CMakeLists.txt index 7c480455ed..888ce27d22 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_vswprintf_test5 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test5/test5.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test5/test5.cpp index 42146c8be7..42146c8be7 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test6/CMakeLists.txt index d7de580853..bfbb17ccef 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_vswprintf_test6 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test6/test6.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test6/test6.cpp index 51e99267a1..51e99267a1 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test7/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test7/CMakeLists.txt index eb07ee2cae..8b980586bc 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test7/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test7/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test7.c + test7.cpp ) add_executable(paltest_vswprintf_test7 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test7/test7.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test7/test7.cpp index 6037cb0fe7..6037cb0fe7 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test7/test7.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test7/test7.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test8/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test8/CMakeLists.txt index ed35ea8dd0..07ba473844 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test8/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test8/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test8.c + test8.cpp ) add_executable(paltest_vswprintf_test8 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test8/test8.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test8/test8.cpp index baba524650..baba524650 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test8/test8.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test8/test8.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test9/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/vswprintf/test9/CMakeLists.txt index 7098da31d0..11c77787e9 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test9/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test9/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test9.c + test9.cpp ) add_executable(paltest_vswprintf_test9 diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/test9/test9.c b/src/pal/tests/palsuite/c_runtime/vswprintf/test9/test9.cpp index 5de004f5ed..5de004f5ed 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/test9/test9.c +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/test9/test9.cpp diff --git a/src/pal/tests/palsuite/c_runtime/vswprintf/vswprintf.h b/src/pal/tests/palsuite/c_runtime/vswprintf/vswprintf.h index a79c9bb7a9..37a379212e 100644 --- a/src/pal/tests/palsuite/c_runtime/vswprintf/vswprintf.h +++ b/src/pal/tests/palsuite/c_runtime/vswprintf/vswprintf.h @@ -27,7 +27,7 @@ int testvswp(wchar_t* buf, const wchar_t* format, ...) return( retVal); } -void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) +void DoWStrTest(const WCHAR *formatstr, WCHAR *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -42,7 +42,7 @@ void DoWStrTest(WCHAR *formatstr, WCHAR *param, WCHAR *checkstr) } } -void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) +void DoStrTest(const WCHAR *formatstr, char *param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -57,7 +57,7 @@ void DoStrTest(WCHAR *formatstr, char *param, WCHAR *checkstr) } } -void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) +void DoCharTest(const WCHAR *formatstr, char param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -71,7 +71,7 @@ void DoCharTest(WCHAR *formatstr, char param, WCHAR *checkstr) } } -void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) +void DoWCharTest(const WCHAR *formatstr, WCHAR param, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -85,7 +85,7 @@ void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) } } -void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) +void DoNumTest(const WCHAR *formatstr, int value, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -98,7 +98,7 @@ void DoNumTest(WCHAR *formatstr, int value, WCHAR*checkstr) } } -void DoI64NumTest(WCHAR *formatstr, INT64 value, char *valuestr, WCHAR*checkstr) +void DoI64NumTest(const WCHAR *formatstr, INT64 value, char *valuestr, const WCHAR *checkstr) { WCHAR buf[256] = { 0 }; @@ -110,7 +110,7 @@ void DoI64NumTest(WCHAR *formatstr, INT64 value, char *valuestr, WCHAR*checkstr) convertC(checkstr), convertC(buf)); } } -void DoDoubleTest(WCHAR *formatstr, double value, WCHAR *checkstr1, WCHAR +void DoDoubleTest(const WCHAR *formatstr, double value, const WCHAR *checkstr1, WCHAR *checkstr2) { WCHAR buf[256] = { 0 }; diff --git a/src/pal/tests/palsuite/c_runtime/wcscat/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcscat/test1/CMakeLists.txt index 34dfee01bd..815c585de4 100644 --- a/src/pal/tests/palsuite/c_runtime/wcscat/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcscat/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcscat_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcscat/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcscat/test1/test1.cpp index 789eebf5a3..789eebf5a3 100644 --- a/src/pal/tests/palsuite/c_runtime/wcscat/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcscat/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcschr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcschr/test1/CMakeLists.txt index 542d70b7e6..9cf0a918a0 100644 --- a/src/pal/tests/palsuite/c_runtime/wcschr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcschr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcschr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcschr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcschr/test1/test1.cpp index a4963672f8..a4963672f8 100644 --- a/src/pal/tests/palsuite/c_runtime/wcschr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcschr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcscmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcscmp/test1/CMakeLists.txt index 009e48e1ba..98c05352f3 100644 --- a/src/pal/tests/palsuite/c_runtime/wcscmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcscmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcscmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcscmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcscmp/test1/test1.cpp index 1c38dd6d58..1c38dd6d58 100644 --- a/src/pal/tests/palsuite/c_runtime/wcscmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcscmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcscpy/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcscpy/test1/CMakeLists.txt index 5f21b829ee..872b2dec5e 100644 --- a/src/pal/tests/palsuite/c_runtime/wcscpy/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcscpy/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcscpy_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcscpy/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcscpy/test1/test1.cpp index 4e45c86516..4e45c86516 100644 --- a/src/pal/tests/palsuite/c_runtime/wcscpy/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcscpy/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcslen/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcslen/test1/CMakeLists.txt index de0f1c22d3..b641a830f5 100644 --- a/src/pal/tests/palsuite/c_runtime/wcslen/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcslen/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcslen_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcslen/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcslen/test1/test1.cpp index 17d0327628..17d0327628 100644 --- a/src/pal/tests/palsuite/c_runtime/wcslen/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcslen/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcsncat/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcsncat/test1/CMakeLists.txt index 12c286a43a..e90e2b7bc4 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsncat/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcsncat/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcsncat_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcsncat/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcsncat/test1/test1.cpp index 0cd5c3e15a..0cd5c3e15a 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsncat/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcsncat/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/CMakeLists.txt index 56c9b25806..f5511a86c6 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcsncmp_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/test1.cpp index 4e4488f5a1..4e4488f5a1 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcsncmp/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/CMakeLists.txt index 1c1d70ba04..a7254a709c 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcsncpy_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/test1.cpp index 50d97b0e9c..50d97b0e9c 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcsncpy/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/CMakeLists.txt index c6a3f87d75..14c1fe83a4 100644 --- a/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcspbrk_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/test1.cpp index b0432f7819..b0432f7819 100644 --- a/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcspbrk/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/CMakeLists.txt index 80513af1af..abdd6d56d2 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcsrchr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/test1.cpp index ae8765776e..ae8765776e 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcsrchr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcsstr/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcsstr/test1/CMakeLists.txt index e42619344d..0e1e0b47b0 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsstr/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcsstr/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcsstr_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcsstr/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcsstr/test1/test1.cpp index 8296a74983..8296a74983 100644 --- a/src/pal/tests/palsuite/c_runtime/wcsstr/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcsstr/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstod/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstod/test1/CMakeLists.txt index cf585d051a..cca01ca964 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstod/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstod/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcstod_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcstod/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcstod/test1/test1.cpp index e41e92e961..e41e92e961 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstod/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcstod/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstod/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstod/test2/CMakeLists.txt index 43d5bf8a40..ae7450891e 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstod/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstod/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_wcstod_test2 diff --git a/src/pal/tests/palsuite/c_runtime/wcstod/test2/test2.c b/src/pal/tests/palsuite/c_runtime/wcstod/test2/test2.cpp index 8f9b5cbf58..8f9b5cbf58 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstod/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/wcstod/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstok/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstok/test1/CMakeLists.txt index 863f5d8c29..6b5bed9552 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstok/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstok/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcstok_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcstok/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcstok/test1/test1.cpp index 76d7dc02b3..76d7dc02b3 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstok/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcstok/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstol/test1/CMakeLists.txt index 25e96e7de0..f76018fca3 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcstol_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcstol/test1/test1.cpp index d84ba66adc..d84ba66adc 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstol/test2/CMakeLists.txt index ea33ec8c7e..8dc2ab6b65 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_wcstol_test2 diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test2/test2.c b/src/pal/tests/palsuite/c_runtime/wcstol/test2/test2.cpp index 58309be6b4..58309be6b4 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstol/test3/CMakeLists.txt index 509feca08c..310f97d6dc 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_wcstol_test3 diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test3/test3.c b/src/pal/tests/palsuite/c_runtime/wcstol/test3/test3.cpp index 8b5ce6943d..8b5ce6943d 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstol/test4/CMakeLists.txt index 043c562102..23928aa704 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_wcstol_test4 diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test4/test4.c b/src/pal/tests/palsuite/c_runtime/wcstol/test4/test4.cpp index a5e65946e9..a5e65946e9 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstol/test5/CMakeLists.txt index c887369880..16c709ffa0 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_wcstol_test5 diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test5/test5.c b/src/pal/tests/palsuite/c_runtime/wcstol/test5/test5.cpp index 62f0a895a6..62f0a895a6 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstol/test6/CMakeLists.txt index d328161f39..80ccaf609b 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_wcstol_test6 diff --git a/src/pal/tests/palsuite/c_runtime/wcstol/test6/test6.c b/src/pal/tests/palsuite/c_runtime/wcstol/test6/test6.cpp index 14f6208231..14f6208231 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstol/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/wcstol/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstoul/test1/CMakeLists.txt index b24523e93b..58f002ab32 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wcstoul_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wcstoul/test1/test1.cpp index 5274905e30..5274905e30 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstoul/test2/CMakeLists.txt index e262078e34..2c8d012310 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_wcstoul_test2 diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test2/test2.c b/src/pal/tests/palsuite/c_runtime/wcstoul/test2/test2.cpp index 2ab2dbf5d1..2ab2dbf5d1 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test3/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstoul/test3/CMakeLists.txt index aae268ac59..353df07f52 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_wcstoul_test3 diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test3/test3.c b/src/pal/tests/palsuite/c_runtime/wcstoul/test3/test3.cpp index eac46615e2..eac46615e2 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test3/test3.c +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test3/test3.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test4/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstoul/test4/CMakeLists.txt index bd8073023f..e1e7d55420 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test4/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test4/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test4.c + test4.cpp ) add_executable(paltest_wcstoul_test4 diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test4/test4.c b/src/pal/tests/palsuite/c_runtime/wcstoul/test4/test4.cpp index 0261da4275..0261da4275 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test4/test4.c +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test4/test4.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test5/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstoul/test5/CMakeLists.txt index 1451e6ad57..9e83c6074c 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test5/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test5/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test5.c + test5.cpp ) add_executable(paltest_wcstoul_test5 diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test5/test5.c b/src/pal/tests/palsuite/c_runtime/wcstoul/test5/test5.cpp index 00287cf7f4..00287cf7f4 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test5/test5.c +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test5/test5.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test6/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wcstoul/test6/CMakeLists.txt index 15518bdcf8..8352d0cbbe 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test6/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test6/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test6.c + test6.cpp ) add_executable(paltest_wcstoul_test6 diff --git a/src/pal/tests/palsuite/c_runtime/wcstoul/test6/test6.c b/src/pal/tests/palsuite/c_runtime/wcstoul/test6/test6.cpp index 28397ec73f..28397ec73f 100644 --- a/src/pal/tests/palsuite/c_runtime/wcstoul/test6/test6.c +++ b/src/pal/tests/palsuite/c_runtime/wcstoul/test6/test6.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wprintf/test1/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wprintf/test1/CMakeLists.txt index 701bbe4160..f95fc12ea1 100644 --- a/src/pal/tests/palsuite/c_runtime/wprintf/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wprintf/test1/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test1.c + test1.cpp ) add_executable(paltest_wprintf_test1 diff --git a/src/pal/tests/palsuite/c_runtime/wprintf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/wprintf/test1/test1.cpp index d99dc8cf93..d99dc8cf93 100644 --- a/src/pal/tests/palsuite/c_runtime/wprintf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/wprintf/test1/test1.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wprintf/test2/CMakeLists.txt b/src/pal/tests/palsuite/c_runtime/wprintf/test2/CMakeLists.txt index 55c3d11913..325e8046d5 100644 --- a/src/pal/tests/palsuite/c_runtime/wprintf/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/c_runtime/wprintf/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_wprintf_test2 diff --git a/src/pal/tests/palsuite/c_runtime/wprintf/test2/test2.c b/src/pal/tests/palsuite/c_runtime/wprintf/test2/test2.cpp index 254e98a394..254e98a394 100644 --- a/src/pal/tests/palsuite/c_runtime/wprintf/test2/test2.c +++ b/src/pal/tests/palsuite/c_runtime/wprintf/test2/test2.cpp diff --git a/src/pal/tests/palsuite/c_runtime/wprintf/wprintf.h b/src/pal/tests/palsuite/c_runtime/wprintf/wprintf.h index 7d3caf1b02..3a96248c35 100644 --- a/src/pal/tests/palsuite/c_runtime/wprintf/wprintf.h +++ b/src/pal/tests/palsuite/c_runtime/wprintf/wprintf.h @@ -14,7 +14,7 @@ #ifndef __wprintf_H__ #define __wprintf_H__ -void DoStrTest(WCHAR *formatstr, WCHAR* param, WCHAR *checkstr) +void DoStrTest(const WCHAR *formatstr, const WCHAR *param, const WCHAR *checkstr) { int ret; @@ -27,8 +27,8 @@ void DoStrTest(WCHAR *formatstr, WCHAR* param, WCHAR *checkstr) } -void DoPointerTest(WCHAR *formatstr, void* param, WCHAR* paramstr, - WCHAR *checkstr1) +void DoPointerTest(const WCHAR *formatstr, void* param, WCHAR* paramstr, + const WCHAR *checkstr1) { int ret; @@ -40,7 +40,7 @@ void DoPointerTest(WCHAR *formatstr, void* param, WCHAR* paramstr, } } -void DoCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) +void DoCountTest(const WCHAR *formatstr, int param, const WCHAR *checkstr) { int ret; int n = -1; @@ -59,7 +59,7 @@ void DoCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) } } -void DoShortCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) +void DoShortCountTest(const WCHAR *formatstr, int param, const WCHAR *checkstr) { int ret; short int n = -1; @@ -79,7 +79,7 @@ void DoShortCountTest(WCHAR *formatstr, int param, WCHAR *checkstr) } -void DoCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) +void DoCharTest(const WCHAR *formatstr, WCHAR param, const WCHAR *checkstr) { int ret; @@ -91,7 +91,7 @@ void DoCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) } } -void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) +void DoWCharTest(const WCHAR *formatstr, WCHAR param, const WCHAR *checkstr) { int ret; @@ -103,7 +103,7 @@ void DoWCharTest(WCHAR *formatstr, WCHAR param, WCHAR *checkstr) } } -void DoNumTest(WCHAR *formatstr, int param, WCHAR *checkstr) +void DoNumTest(const WCHAR *formatstr, int param, const WCHAR *checkstr) { int ret; @@ -115,8 +115,8 @@ void DoNumTest(WCHAR *formatstr, int param, WCHAR *checkstr) } } -void DoI64Test(WCHAR *formatstr, INT64 param, WCHAR *valuestr, - WCHAR *checkstr1) +void DoI64Test(const WCHAR *formatstr, INT64 param, const WCHAR *valuestr, + const WCHAR *checkstr1) { int ret; @@ -128,8 +128,8 @@ void DoI64Test(WCHAR *formatstr, INT64 param, WCHAR *valuestr, } } -void DoDoubleTest(WCHAR *formatstr, double param, - WCHAR *checkstr1, WCHAR *checkstr2) +void DoDoubleTest(const WCHAR *formatstr, double param, + const WCHAR *checkstr1, const WCHAR *checkstr2) { int ret; @@ -141,8 +141,8 @@ void DoDoubleTest(WCHAR *formatstr, double param, } } -void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, - WCHAR *paramstr, WCHAR *checkstr1, WCHAR *checkstr2) +void DoArgumentPrecTest(const WCHAR *formatstr, int precision, void *param, + WCHAR *paramstr, const WCHAR *checkstr1, const WCHAR *checkstr2) { int ret; @@ -154,8 +154,8 @@ void DoArgumentPrecTest(WCHAR *formatstr, int precision, void *param, } } -void DoArgumentPrecDoubleTest(WCHAR *formatstr, int precision, double param, - WCHAR *checkstr1, WCHAR *checkstr2) +void DoArgumentPrecDoubleTest(const WCHAR *formatstr, int precision, double param, + const WCHAR *checkstr1, const WCHAR *checkstr2) { int ret; |