diff options
Diffstat (limited to 'indra/llcommon/tests')
30 files changed, 24 insertions, 21 deletions
| diff --git a/indra/llcommon/tests/StringVec.h b/indra/llcommon/tests/StringVec.h index a380b00a05..a380b00a05 100644..100755 --- a/indra/llcommon/tests/StringVec.h +++ b/indra/llcommon/tests/StringVec.h diff --git a/indra/llcommon/tests/bitpack_test.cpp b/indra/llcommon/tests/bitpack_test.cpp index 4c3bc674af..afc0c18cd0 100644..100755 --- a/indra/llcommon/tests/bitpack_test.cpp +++ b/indra/llcommon/tests/bitpack_test.cpp @@ -71,7 +71,6 @@ namespace tut  		U8 packbuffer[255];  		U8 unpackbuffer[255];  		int pack_bufsize = 0; -		int unpack_bufsize = 0;  		LLBitPack bitpack(packbuffer, 255); @@ -81,21 +80,20 @@ namespace tut  		pack_bufsize = bitpack.flushBitPack();  		LLBitPack bitunpack(packbuffer, pack_bufsize*8); -		unpack_bufsize = bitunpack.bitUnpack(&unpackbuffer[0], 8); +		bitunpack.bitUnpack(&unpackbuffer[0], 8);  		ensure("bitPack: individual unpack: 0", unpackbuffer[0] == (U8) str[0]); -		unpack_bufsize = bitunpack.bitUnpack(&unpackbuffer[0], 8); +		bitunpack.bitUnpack(&unpackbuffer[0], 8);  		ensure("bitPack: individual unpack: 1", unpackbuffer[0] == (U8) str[1]); -		unpack_bufsize = bitunpack.bitUnpack(&unpackbuffer[0], 8); +		bitunpack.bitUnpack(&unpackbuffer[0], 8);  		ensure("bitPack: individual unpack: 2", unpackbuffer[0] == (U8) str[2]); -		unpack_bufsize = bitunpack.bitUnpack(&unpackbuffer[0], 8); +		bitunpack.bitUnpack(&unpackbuffer[0], 8);  		ensure("bitPack: individual unpack: 3", unpackbuffer[0] == (U8) str[3]); -		unpack_bufsize = bitunpack.bitUnpack(&unpackbuffer[0], 8); +		bitunpack.bitUnpack(&unpackbuffer[0], 8);  		ensure("bitPack: individual unpack: 4", unpackbuffer[0] == (U8) str[4]); -		unpack_bufsize = bitunpack.bitUnpack(&unpackbuffer[0], 8); +		bitunpack.bitUnpack(&unpackbuffer[0], 8);  		ensure("bitPack: individual unpack: 5", unpackbuffer[0] == (U8) str[5]); -		unpack_bufsize = bitunpack.bitUnpack(unpackbuffer, 8*4); // Life +		bitunpack.bitUnpack(unpackbuffer, 8*4); // Life  		ensure_memory_matches("bitPack: 4 bytes unpack:", unpackbuffer, 4, str+6, 4); -		ensure("keep compiler quiet", unpack_bufsize == unpack_bufsize);  	}  	// U32 packing diff --git a/indra/llcommon/tests/commonmisc_test.cpp b/indra/llcommon/tests/commonmisc_test.cpp index b115c153c1..b115c153c1 100644..100755 --- a/indra/llcommon/tests/commonmisc_test.cpp +++ b/indra/llcommon/tests/commonmisc_test.cpp diff --git a/indra/llcommon/tests/listener.h b/indra/llcommon/tests/listener.h index 9c5c18a150..9c5c18a150 100644..100755 --- a/indra/llcommon/tests/listener.h +++ b/indra/llcommon/tests/listener.h diff --git a/indra/llcommon/tests/llallocator_heap_profile_test.cpp b/indra/llcommon/tests/llallocator_heap_profile_test.cpp index 44a9705803..44a9705803 100644..100755 --- a/indra/llcommon/tests/llallocator_heap_profile_test.cpp +++ b/indra/llcommon/tests/llallocator_heap_profile_test.cpp diff --git a/indra/llcommon/tests/llallocator_test.cpp b/indra/llcommon/tests/llallocator_test.cpp index 4e62eaee67..4e62eaee67 100644..100755 --- a/indra/llcommon/tests/llallocator_test.cpp +++ b/indra/llcommon/tests/llallocator_test.cpp diff --git a/indra/llcommon/tests/llbase64_test.cpp b/indra/llcommon/tests/llbase64_test.cpp index d0394150fa..d0394150fa 100644..100755 --- a/indra/llcommon/tests/llbase64_test.cpp +++ b/indra/llcommon/tests/llbase64_test.cpp diff --git a/indra/llcommon/tests/lldate_test.cpp b/indra/llcommon/tests/lldate_test.cpp index 7c95ccb91f..7c95ccb91f 100644..100755 --- a/indra/llcommon/tests/lldate_test.cpp +++ b/indra/llcommon/tests/lldate_test.cpp diff --git a/indra/llcommon/tests/lldependencies_test.cpp b/indra/llcommon/tests/lldependencies_test.cpp index 5395d785b6..5395d785b6 100644..100755 --- a/indra/llcommon/tests/lldependencies_test.cpp +++ b/indra/llcommon/tests/lldependencies_test.cpp diff --git a/indra/llcommon/tests/llerror_test.cpp b/indra/llcommon/tests/llerror_test.cpp index 279a90e51b..279a90e51b 100644..100755 --- a/indra/llcommon/tests/llerror_test.cpp +++ b/indra/llcommon/tests/llerror_test.cpp diff --git a/indra/llcommon/tests/lleventcoro_test.cpp b/indra/llcommon/tests/lleventcoro_test.cpp index 8d12529613..8d12529613 100644..100755 --- a/indra/llcommon/tests/lleventcoro_test.cpp +++ b/indra/llcommon/tests/lleventcoro_test.cpp diff --git a/indra/llcommon/tests/lleventdispatcher_test.cpp b/indra/llcommon/tests/lleventdispatcher_test.cpp index 263c9b171f..263c9b171f 100644..100755 --- a/indra/llcommon/tests/lleventdispatcher_test.cpp +++ b/indra/llcommon/tests/lleventdispatcher_test.cpp diff --git a/indra/llcommon/tests/lleventfilter_test.cpp b/indra/llcommon/tests/lleventfilter_test.cpp index ca05ef62a9..ca05ef62a9 100644..100755 --- a/indra/llcommon/tests/lleventfilter_test.cpp +++ b/indra/llcommon/tests/lleventfilter_test.cpp diff --git a/indra/llcommon/tests/llframetimer_test.cpp b/indra/llcommon/tests/llframetimer_test.cpp index 8ac1c91a3a..8ac1c91a3a 100644..100755 --- a/indra/llcommon/tests/llframetimer_test.cpp +++ b/indra/llcommon/tests/llframetimer_test.cpp diff --git a/indra/llcommon/tests/llinstancetracker_test.cpp b/indra/llcommon/tests/llinstancetracker_test.cpp index 454695ff9f..e769c3e22c 100644..100755 --- a/indra/llcommon/tests/llinstancetracker_test.cpp +++ b/indra/llcommon/tests/llinstancetracker_test.cpp @@ -267,7 +267,6 @@ namespace tut          {              existing.insert(&*uki);          } -        Unkeyed* puk = NULL;          try          {              // We don't expect the assignment to take place because we expect @@ -280,7 +279,7 @@ namespace tut              // realize we're testing the C++ implementation more than              // Unkeyed's implementation, but this seems an important point to              // nail down. -            puk = new Unkeyed("throw"); +            new Unkeyed("throw");          }          catch (const Badness&)          { diff --git a/indra/llcommon/tests/lllazy_test.cpp b/indra/llcommon/tests/lllazy_test.cpp index 32a717f4fc..32a717f4fc 100644..100755 --- a/indra/llcommon/tests/lllazy_test.cpp +++ b/indra/llcommon/tests/lllazy_test.cpp diff --git a/indra/llcommon/tests/llleap_test.cpp b/indra/llcommon/tests/llleap_test.cpp index 9b755e9ca5..29060d4ef5 100644..100755 --- a/indra/llcommon/tests/llleap_test.cpp +++ b/indra/llcommon/tests/llleap_test.cpp @@ -122,13 +122,10 @@ namespace tut                     // finding indra/lib/python. Use our __FILE__, with                     // raw-string syntax to deal with Windows pathnames.                     "mydir = os.path.dirname(r'" << __FILE__ << "')\n" -                   "try:\n" -                   "    from llbase import llsd\n" -                   "except ImportError:\n"                     // We expect mydir to be .../indra/llcommon/tests. -                   "    sys.path.insert(0,\n" -                   "        os.path.join(mydir, os.pardir, os.pardir, 'lib', 'python'))\n" -                   "    from indra.base import llsd\n" +                   "sys.path.insert(0,\n" +                   "    os.path.join(mydir, os.pardir, os.pardir, 'lib', 'python'))\n" +                   "from indra.base import llsd\n"                     "\n"                     "class ProtocolError(Exception):\n"                     "    def __init__(self, msg, data):\n" diff --git a/indra/llcommon/tests/llmemtype_test.cpp b/indra/llcommon/tests/llmemtype_test.cpp index 1f050d6dc7..1f050d6dc7 100644..100755 --- a/indra/llcommon/tests/llmemtype_test.cpp +++ b/indra/llcommon/tests/llmemtype_test.cpp diff --git a/indra/llcommon/tests/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp index 99186ed434..6f1e7d46b8 100644..100755 --- a/indra/llcommon/tests/llprocess_test.cpp +++ b/indra/llcommon/tests/llprocess_test.cpp @@ -608,6 +608,9 @@ namespace tut      void object::test<5>()      {          set_test_name("exit(2)"); +#if LL_WINDOWS +		skip("MAINT-2302: This frequently (though not always) fails on Windows."); +#endif          PythonProcessLauncher py(get_test_name(),                                   "import sys\n"                                   "sys.exit(2)\n"); @@ -620,6 +623,9 @@ namespace tut      void object::test<6>()      {          set_test_name("syntax_error:"); +#if LL_WINDOWS +		skip("MAINT-2302: This frequently (though not always) fails on Windows."); +#endif          PythonProcessLauncher py(get_test_name(),                                   "syntax_error:\n");          py.mParams.files.add(LLProcess::FileParam()); // inherit stdin @@ -641,6 +647,9 @@ namespace tut      void object::test<7>()      {          set_test_name("explicit kill()"); +#if LL_WINDOWS +		skip("MAINT-2302: This frequently (though not always) fails on Windows."); +#endif          PythonProcessLauncher py(get_test_name(),                                   "from __future__ import with_statement\n"                                   "import sys, time\n" @@ -685,6 +694,9 @@ namespace tut      void object::test<8>()      {          set_test_name("implicit kill()"); +#if LL_WINDOWS +		skip("MAINT-2302: This frequently (though not always) fails on Windows."); +#endif          NamedTempFile out("out", "not started");          LLProcess::handle phandle(0);          { diff --git a/indra/llcommon/tests/llprocessor_test.cpp b/indra/llcommon/tests/llprocessor_test.cpp index 884e1b5e5b..884e1b5e5b 100644..100755 --- a/indra/llcommon/tests/llprocessor_test.cpp +++ b/indra/llcommon/tests/llprocessor_test.cpp diff --git a/indra/llcommon/tests/llrand_test.cpp b/indra/llcommon/tests/llrand_test.cpp index 383e6f9e0a..383e6f9e0a 100644..100755 --- a/indra/llcommon/tests/llrand_test.cpp +++ b/indra/llcommon/tests/llrand_test.cpp diff --git a/indra/llcommon/tests/llsdserialize_test.cpp b/indra/llcommon/tests/llsdserialize_test.cpp index e625545763..4d436e8897 100644..100755 --- a/indra/llcommon/tests/llsdserialize_test.cpp +++ b/indra/llcommon/tests/llsdserialize_test.cpp @@ -1523,10 +1523,7 @@ namespace tut                          "sys.path.insert(0,\n"                          "    os.path.join(os.path.dirname(r'" __FILE__ "'),\n"                          "                 os.pardir, os.pardir, 'lib', 'python'))\n" -                        "try:\n" -                        "    from llbase import llsd\n" -                        "except ImportError:\n" -                        "    from indra.base import llsd\n") +                        "from indra.base import llsd\n")          {}          ~TestPythonCompatible() {} diff --git a/indra/llcommon/tests/llsingleton_test.cpp b/indra/llcommon/tests/llsingleton_test.cpp index 385289aefe..385289aefe 100644..100755 --- a/indra/llcommon/tests/llsingleton_test.cpp +++ b/indra/llcommon/tests/llsingleton_test.cpp diff --git a/indra/llcommon/tests/llstreamqueue_test.cpp b/indra/llcommon/tests/llstreamqueue_test.cpp index 050ad5c5bf..050ad5c5bf 100644..100755 --- a/indra/llcommon/tests/llstreamqueue_test.cpp +++ b/indra/llcommon/tests/llstreamqueue_test.cpp diff --git a/indra/llcommon/tests/llstring_test.cpp b/indra/llcommon/tests/llstring_test.cpp index 93d3968dbf..93d3968dbf 100644..100755 --- a/indra/llcommon/tests/llstring_test.cpp +++ b/indra/llcommon/tests/llstring_test.cpp diff --git a/indra/llcommon/tests/lltreeiterators_test.cpp b/indra/llcommon/tests/lltreeiterators_test.cpp index 1d619867d4..1d619867d4 100644..100755 --- a/indra/llcommon/tests/lltreeiterators_test.cpp +++ b/indra/llcommon/tests/lltreeiterators_test.cpp diff --git a/indra/llcommon/tests/lluri_test.cpp b/indra/llcommon/tests/lluri_test.cpp index 4c64f15ca7..4c64f15ca7 100644..100755 --- a/indra/llcommon/tests/lluri_test.cpp +++ b/indra/llcommon/tests/lluri_test.cpp diff --git a/indra/llcommon/tests/reflection_test.cpp b/indra/llcommon/tests/reflection_test.cpp index 8980ebb1f1..8980ebb1f1 100644..100755 --- a/indra/llcommon/tests/reflection_test.cpp +++ b/indra/llcommon/tests/reflection_test.cpp diff --git a/indra/llcommon/tests/stringize_test.cpp b/indra/llcommon/tests/stringize_test.cpp index 3d34f23998..3d34f23998 100644..100755 --- a/indra/llcommon/tests/stringize_test.cpp +++ b/indra/llcommon/tests/stringize_test.cpp diff --git a/indra/llcommon/tests/wrapllerrs.h b/indra/llcommon/tests/wrapllerrs.h index a4d3a4e026..a4d3a4e026 100644..100755 --- a/indra/llcommon/tests/wrapllerrs.h +++ b/indra/llcommon/tests/wrapllerrs.h | 
