aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/common.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/test/common.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/test/common.cpp')
-rw-r--r--linden/indra/test/common.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/test/common.cpp b/linden/indra/test/common.cpp
index 0bf0de4..b4235ed 100644
--- a/linden/indra/test/common.cpp
+++ b/linden/indra/test/common.cpp
@@ -49,6 +49,11 @@
49#include "llsdserialize.h" 49#include "llsdserialize.h"
50#include "u64.h" 50#include "u64.h"
51 51
52#if LL_WINDOWS
53// disable overflow warnings
54#pragma warning(disable: 4307)
55#endif
56
52namespace tut 57namespace tut
53{ 58{
54 struct sd_data 59 struct sd_data
@@ -369,6 +374,9 @@ namespace tut
369 template<> template<> 374 template<> template<>
370 void sd_object::test<14>() 375 void sd_object::test<14>()
371 { 376 {
377//#if LL_WINDOWS && _MSC_VER >= 1400
378// skip_fail("Fails on VS2005 due to broken LLSDSerialize::fromNotation() parser.");
379//#endif
372 std::string param = "[{'version':i1},{'data':{'binary_bucket':b(0)\"\"},'from_id':u3c115e51-04f4-523c-9fa6-98aff1034730,'from_name':'Phoenix Linden','id':u004e45e5-5576-277a-fba7-859d6a4cb5c8,'message':'hey','offline':i0,'timestamp':i0,'to_id':u3c5f1bb4-5182-7546-6401-1d329b4ff2f8,'type':i0},{'agent_id':u3c115e51-04f4-523c-9fa6-98aff1034730,'god_level':i0,'limited_to_estate':i1}]"; 380 std::string param = "[{'version':i1},{'data':{'binary_bucket':b(0)\"\"},'from_id':u3c115e51-04f4-523c-9fa6-98aff1034730,'from_name':'Phoenix Linden','id':u004e45e5-5576-277a-fba7-859d6a4cb5c8,'message':'hey','offline':i0,'timestamp':i0,'to_id':u3c5f1bb4-5182-7546-6401-1d329b4ff2f8,'type':i0},{'agent_id':u3c115e51-04f4-523c-9fa6-98aff1034730,'god_level':i0,'limited_to_estate':i1}]";
373 std::istringstream istr; 381 std::istringstream istr;
374 istr.str(param); 382 istr.str(param);
@@ -548,7 +556,7 @@ namespace tut
548 ensure_equals("str_to_U64 converted 2.1", val, result); 556 ensure_equals("str_to_U64 converted 2.1", val, result);
549 557
550 val = U64L(0); // empty string 558 val = U64L(0); // empty string
551 result = str_to_U64(""); 559 result = str_to_U64(LLStringUtil::null);
552 ensure_equals("str_to_U64 converted 2.2", val, result); 560 ensure_equals("str_to_U64 converted 2.2", val, result);
553 561
554 val = U64L(0); // 0 562 val = U64L(0); // 0