diff options
| author | Oz Linden <oz@lindenlab.com> | 2014-12-17 11:15:31 -0500 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2014-12-17 11:15:31 -0500 | 
| commit | f8ed44f8ec80916e684c2783da02f89474710de6 (patch) | |
| tree | 2a4ca145439751e864beb6be91cde52a7901b036 /indra | |
| parent | 11ab03331f5028455a56245fc9121b82068565cc (diff) | |
| parent | 0d71baba74e2009e88471e2c44e78863b34a5817 (diff) | |
merge latest updates from nat and callum
Diffstat (limited to 'indra')
| -rwxr-xr-x | indra/CMakeLists.txt | 2 | ||||
| -rwxr-xr-x | indra/cmake/Variables.cmake | 1 | ||||
| -rwxr-xr-x | indra/cmake/run_build_test.py | 19 | ||||
| -rwxr-xr-x | indra/llcommon/tests/llerror_test.cpp | 2 | ||||
| -rwxr-xr-x | indra/llcommon/tests/llsdserialize_test.cpp | 3 | ||||
| -rwxr-xr-x | indra/llkdu/tests/llimagej2ckdu_test.cpp | 2 | ||||
| -rwxr-xr-x | indra/llplugin/llpluginclassmedia.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/llcommunicationchannel.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/llfloaterpathfindingobjects.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/llpanelmaininventory.cpp | 2 | ||||
| -rwxr-xr-x | indra/test/llsd_new_tut.cpp | 11 | 
11 files changed, 29 insertions, 19 deletions
| diff --git a/indra/CMakeLists.txt b/indra/CMakeLists.txt index 24ea59ca49..29f02b58ba 100755 --- a/indra/CMakeLists.txt +++ b/indra/CMakeLists.txt @@ -60,6 +60,7 @@ add_subdirectory(${LIBS_OPEN_PREFIX}viewer_components)  # Legacy C++ tests. Build always, run if LL_TESTS is true.  add_subdirectory(${VIEWER_PREFIX}test) +if (ENABLE_MEDIA_PLUGINS)  # viewer media plugins  add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins) @@ -68,6 +69,7 @@ add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins)      add_subdirectory(${VIEWER_PREFIX}test_apps/llplugintest)      add_subdirectory(${VIEWER_PREFIX}test_apps/llfbconnecttest)    endif (LL_TESTS AND NOT LINUX) +endif (ENABLE_MEDIA_PLUGINS)  if (LINUX)    add_subdirectory(${VIEWER_PREFIX}linux_crash_logger) diff --git a/indra/cmake/Variables.cmake b/indra/cmake/Variables.cmake index 8e220162ce..faca12c347 100755 --- a/indra/cmake/Variables.cmake +++ b/indra/cmake/Variables.cmake @@ -26,6 +26,7 @@ set(VIEWER_PREFIX)  set(INTEGRATION_TESTS_PREFIX)  set(LL_TESTS ON CACHE BOOL "Build and run unit and integration tests (disable for build timing runs to reduce variation")  set(INCREMENTAL_LINK OFF CACHE BOOL "Use incremental linking on win32 builds (enable for faster links on some machines)") +set(ENABLE_MEDIA_PLUGINS OFF CACHE BOOL "Turn off building media plugins if they are imported by third-party library mechanism")  if(LIBS_CLOSED_DIR)    file(TO_CMAKE_PATH "${LIBS_CLOSED_DIR}" LIBS_CLOSED_DIR) diff --git a/indra/cmake/run_build_test.py b/indra/cmake/run_build_test.py index a2ef61c8fd..582185e5ab 100755 --- a/indra/cmake/run_build_test.py +++ b/indra/cmake/run_build_test.py @@ -46,6 +46,7 @@ $/LicenseInfo$  import os  import sys +import errno  import signal  import subprocess @@ -112,7 +113,23 @@ def main(command, libpath=[], vars={}):      print "Running: %s" % " ".join(command)      # Make sure we see all relevant output *before* child-process output.      sys.stdout.flush() -    return subprocess.call(command) +    try: +        return subprocess.call(command) +    except OSError as err: +        # If the caller is trying to execute a test program that doesn't +        # exist, we want to produce a reasonable error message rather than a +        # traceback. This happens when the build is halted by errors, but +        # CMake tries to proceed with testing anyway <eyeroll/>. However, do +        # NOT attempt to handle any error but "doesn't exist." +        if err.errno != errno.ENOENT: +            raise +        # In practice, the pathnames into CMake's build tree are so long as to +        # obscure the name of the test program. Just print its basename. +        print "No such program %s; check for preceding build errors" % \ +              os.path.basename(command[0]) +        # What rc should we simulate for missing executable? Windows produces +        # 9009. +        return 9009  # swiped from vita, sigh, seems like a Bad Idea to introduce dependency  def translate_rc(rc): diff --git a/indra/llcommon/tests/llerror_test.cpp b/indra/llcommon/tests/llerror_test.cpp index fee9492618..f51279e817 100755 --- a/indra/llcommon/tests/llerror_test.cpp +++ b/indra/llcommon/tests/llerror_test.cpp @@ -38,7 +38,9 @@  namespace  { +#ifdef __clang__  #   pragma clang diagnostic ignored "-Wunused-function" +#endif  	void test_that_error_h_includes_enough_things_to_compile_a_message()  	{  		LL_INFOS() << "!" << LL_ENDL; diff --git a/indra/llcommon/tests/llsdserialize_test.cpp b/indra/llcommon/tests/llsdserialize_test.cpp index afd4e7c8c1..6fbb9abfc0 100755 --- a/indra/llcommon/tests/llsdserialize_test.cpp +++ b/indra/llcommon/tests/llsdserialize_test.cpp @@ -46,6 +46,7 @@ typedef U32 uint32_t;  #include "boost/range.hpp"  #include "boost/foreach.hpp"  #include "boost/function.hpp" +#include "boost/bind.hpp"  #include "boost/phoenix/bind/bind_function.hpp"  #include "boost/phoenix/core/argument.hpp"  using namespace boost::phoenix; @@ -1659,7 +1660,7 @@ namespace tut                             // takes a callable. To this callable it passes the                             // std::ostream with which it's writing the                             // NamedTempFile. -                           bind(writeLLSDArray, placeholders::arg1, cdata)); +                           boost::bind(writeLLSDArray, _1, cdata));          python("read C++ notation",                 placeholders::arg1 << diff --git a/indra/llkdu/tests/llimagej2ckdu_test.cpp b/indra/llkdu/tests/llimagej2ckdu_test.cpp index 1c9969a5df..dd20ac295d 100755 --- a/indra/llkdu/tests/llimagej2ckdu_test.cpp +++ b/indra/llkdu/tests/llimagej2ckdu_test.cpp @@ -34,7 +34,7 @@  #pragma clang diagnostic ignored "-Wunused-private-field"  #include "llkdumem.h"  #pragma clang diagnostic pop -#elif +#else  #include "llkdumem.h"  #endif diff --git a/indra/llplugin/llpluginclassmedia.cpp b/indra/llplugin/llpluginclassmedia.cpp index 0644d2638c..52626b0302 100755 --- a/indra/llplugin/llpluginclassmedia.cpp +++ b/indra/llplugin/llpluginclassmedia.cpp @@ -32,8 +32,6 @@  #include "llpluginclassmedia.h"  #include "llpluginmessageclasses.h" -#include "llqtwebkit.h" -  static int LOW_PRIORITY_TEXTURE_SIZE_DEFAULT = 256;  static int nextPowerOf2( int value ) diff --git a/indra/newview/llcommunicationchannel.cpp b/indra/newview/llcommunicationchannel.cpp index 627c9eb5c0..cf98b56b4c 100755 --- a/indra/newview/llcommunicationchannel.cpp +++ b/indra/newview/llcommunicationchannel.cpp @@ -108,6 +108,6 @@ void LLCommunicationChannel::onFilterFail(LLNotificationPtr pNotificationPtr)  		|| (notificationType == "notifytoast"))          && !pNotificationPtr->isCancelled())  	{ -		mHistory.insert(std::make_pair<LLDate, LLNotificationPtr>(pNotificationPtr->getDate(), pNotificationPtr)); +		mHistory.insert(history_list_t::value_type(pNotificationPtr->getDate(), pNotificationPtr));  	}  } diff --git a/indra/newview/llfloaterpathfindingobjects.cpp b/indra/newview/llfloaterpathfindingobjects.cpp index d72ee073e1..f6ff83eaf4 100755 --- a/indra/newview/llfloaterpathfindingobjects.cpp +++ b/indra/newview/llfloaterpathfindingobjects.cpp @@ -406,7 +406,7 @@ void LLFloaterPathfindingObjects::addObjectToScrollList(const LLPathfindingObjec  	if (pObjectPtr->hasOwner() && !pObjectPtr->hasOwnerName())  	{ -		mMissingNameObjectsScrollListItems.insert(std::make_pair<std::string, LLScrollListItem *>(pObjectPtr->getUUID().asString(), scrollListItem)); +		mMissingNameObjectsScrollListItems.insert(scroll_list_item_map::value_type(pObjectPtr->getUUID().asString(), scrollListItem));  		pObjectPtr->registerOwnerNameListener(boost::bind(&LLFloaterPathfindingObjects::handleObjectNameResponse, this, _1));  	}  } diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index a7c9dbdf7b..a5063de0f4 100755 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -246,7 +246,7 @@ LLPanelMainInventory::~LLPanelMainInventory( void )  	llofstream filtersFile(filterSaveName.str());  	if(!LLSDSerialize::toPrettyXML(filterRoot, filtersFile))  	{ -		LL_WARNS() << "Could not write to filters save file " << filterSaveName << LL_ENDL; +		LL_WARNS() << "Could not write to filters save file " << filterSaveName.str() << LL_ENDL;  	}  	else  		filtersFile.close(); diff --git a/indra/test/llsd_new_tut.cpp b/indra/test/llsd_new_tut.cpp index 81db191ca6..458df3361e 100755 --- a/indra/test/llsd_new_tut.cpp +++ b/indra/test/llsd_new_tut.cpp @@ -33,18 +33,7 @@  #include "llsdtraits.h"  #include "llstring.h" -#if LL_WINDOWS -#include <float.h> -namespace -{ -	int fpclassify(double x) -	{ -		return _fpclass(x); -	} -} -#else  using std::fpclassify; -#endif  namespace tut  { | 
