From b617eec7228aaab3eb9ea4438afd90976f9b2616 Mon Sep 17 00:00:00 2001 From: kawi Date: Wed, 7 Jan 2015 10:30:46 +0100 Subject: [PATCH] tests clean under windows --- base/ReCString.cpp | 2 +- cunit/cuReCString.cpp | 16 ++++++++-------- os/ReDirTools.cpp | 5 +++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/base/ReCString.cpp b/base/ReCString.cpp index 9b5bee1..7160bca 100644 --- a/base/ReCString.cpp +++ b/base/ReCString.cpp @@ -53,7 +53,7 @@ void replaceSubstring(char* start, size_t bufferSize, size_t lengthReplaced, * < 0: region1 is alphabetically less than region2
* > 0: region1 is alphabetically greater than region2 */ -int memicmp(const void* region1, const void* region2, int size) +int _memicmp(const void* region1, const void* region2, int size) { unsigned char* ptr1 = (unsigned char*) region1; unsigned char* ptr2 = (unsigned char*) region2; diff --git a/cunit/cuReCString.cpp b/cunit/cuReCString.cpp index 5a49336..692b782 100644 --- a/cunit/cuReCString.cpp +++ b/cunit/cuReCString.cpp @@ -33,17 +33,17 @@ private: checkEqu("xw.ab", buffer); } void testMemicmp(){ - checkEqu(0, memicmp((void*) "abcd", (void*) "abcx", 3u)); - checkEqu(0, memicmp("aBcd", "AbCx", 3)); + checkEqu(0, _memicmp((void*) "abcd", (void*) "abcx", 3u)); + checkEqu(0, _memicmp("aBcd", "AbCx", 3)); - checkEqu(1, memicmp("bbcd", "abcx", 3)); - checkEqu(-1, memicmp("abcd", "bbcx", 3)); + checkEqu(1, _memicmp("bbcd", "abcx", 3)); + checkEqu(-1, _memicmp("abcd", "bbcx", 3)); - checkEqu(1, memicmp("Bbcd", "abcx", 3)); - checkEqu(-1, memicmp("aBcd", "bbcx", 3)); + checkEqu(1, _memicmp("Bbcd", "abcx", 3)); + checkEqu(-1, _memicmp("aBcd", "bbcx", 3)); - checkEqu(1, memicmp("bbcd", "abcx", 3)); - checkEqu(-1, memicmp("ABcd", "bbcx", 3)); + checkEqu(1, _memicmp("bbcd", "abcx", 3)); + checkEqu(-1, _memicmp("ABcd", "bbcx", 3)); } }; diff --git a/os/ReDirTools.cpp b/os/ReDirTools.cpp index c4be6ef..75e6afd 100644 --- a/os/ReDirTools.cpp +++ b/os/ReDirTools.cpp @@ -16,7 +16,7 @@ enum LOCATION_DIRTOOL { LC_COPY_FILE_5, // 50105 LC_COPY_FILE_6, // 50106 }; -const char* ReDirTools::m_version = "2015.01.05"; +const char* ReDirTools::m_version = "2015.01.06"; static const char* s_helpSummary[] = { "dirtool or dt ", @@ -27,7 +27,8 @@ static const char* s_helpSummary[] = { "help shows info about the arguments/options", "list shows the meta data of the selected files", "statistic shows statistics about a direcctory tree", - "synchronize adapts the content of a directory tree to another", + "synchronize copies only modified or new files from", + " from a source directory tre to a target", NULL }; -- 2.39.5