diff options
Diffstat (limited to 'indra/llcommon/tests')
| -rwxr-xr-x | indra/llcommon/tests/llleap_test.cpp | 9 | ||||
| -rwxr-xr-x | indra/llcommon/tests/llprocess_test.cpp | 17 | ||||
| -rwxr-xr-x | indra/llcommon/tests/llsdserialize_test.cpp | 5 | 
3 files changed, 17 insertions, 14 deletions
| diff --git a/indra/llcommon/tests/llleap_test.cpp b/indra/llcommon/tests/llleap_test.cpp index 9b755e9ca5..29060d4ef5 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/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp index 99186ed434..f188865eb0 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);          { @@ -957,10 +969,7 @@ namespace tut                        childout.getline(), "ok");          // important to get the implicit flush from std::endl          py.mPy->getWritePipe().get_ostream() << "go" << std::endl; -        for (i = 0; i < timeout && py.mPy->isRunning() && ! childout.contains("\n"); ++i) -        { -            yield(); -        } +        waitfor(*py.mPy);          ensure("script never replied", childout.contains("\n"));          ensure_equals("child didn't ack", childout.getline(), "ack");          ensure_equals("bad child termination", py.mPy->getStatus().mState, LLProcess::EXITED); diff --git a/indra/llcommon/tests/llsdserialize_test.cpp b/indra/llcommon/tests/llsdserialize_test.cpp index e625545763..4d436e8897 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() {} | 
