From bc3f64274cd08452beefb7713fe7b930b6ba15a0 Mon Sep 17 00:00:00 2001 From: Anne Marije v/d Meer Date: Wed, 4 Jun 2014 15:10:13 +0200 Subject: [PATCH] - CMakeLists.txt : Fix mess caused by rebase/merge - pfPythonTest/CMakeLists.txt: changed python linking like Mystler suggested (at least I hope I understood it right) - test_plString.cpp : added actual test, removed tab somewhere --- CMakeLists.txt | 7 ++----- Sources/Tests/CoreTests/test_plString.cpp | 17 +++-------------- .../FeatureTests/pfPythonTest/CMakeLists.txt | 7 +------ 3 files changed, 6 insertions(+), 25 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2921a525..99a6f169 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,17 +96,14 @@ endif(PLASMA_TARGETS STREQUAL "Ethereal") option(PLASMA_BUILD_RESOURCE_DAT "Do we want to build resource.dat?" ON) option(PLASMA_BUILD_LAUNCHER "Do we want to build plUruLauncher?" ON) option(PLASMA_BUILD_TOOLS "Do we want to build the Plasma tools?" ON) -<<<<<<< HEAD - +option(PLASMA_BUILD_TESTS "Do we want to build the unit tests?" OFF) option(3dsm_BUILD_PLUGIN "Do we want to build the 3ds Max plugin?" OFF) + if(3dsm_BUILD_PLUGIN) find_package(MaxSDK REQUIRED) add_definitions(-DBUILDING_MAXPLUGIN) endif(3dsm_BUILD_PLUGIN) -======= -option(PLASMA_BUILD_TESTS "Do we want to build the unit tests?" OFF) ->>>>>>> Make building the tests optional. option(USE_VLD "Build and link with Visual Leak Detector (MSVC only)" OFF) if(USE_VLD) add_definitions(-DUSE_VLD) diff --git a/Sources/Tests/CoreTests/test_plString.cpp b/Sources/Tests/CoreTests/test_plString.cpp index 4ed3b50f..d9009229 100644 --- a/Sources/Tests/CoreTests/test_plString.cpp +++ b/Sources/Tests/CoreTests/test_plString.cpp @@ -10,19 +10,8 @@ TEST(PlStringTest,ToUtf16) uint16_t text[] = {0x0061,0x0062,0x0063,0x0064}; //abcd as in utf16 plStringBuffer expected = plStringBuffer(text,arrsize(text)); plStringBuffer output = plString("abcd").ToUtf16(); - - const uint16_t* c = output.GetData(); - const uint16_t* d = expected.GetData(); - printf("expected size %d output size %d\n", expected.GetSize(), output.GetSize()); - for (int i = 0; i