[opensource-dev] LL_TESTS:BOOL=ON

Nicky Perian nickyperian at gmail.com
Tue Jun 4 12:28:40 PDT 2019


This is a Kokua viewer question but, should  apply to other third party
viewers and to LL's viewer-release once Linux is re-implemented.

Note: all tests pass on MacOs and VS2013.

Kokua's branch with no rlv is used as it is closest to viewer-release code.

My approach is to use skip(..) to bypass tests that do not work on a linux
build then once the viewer builds go back an attack each skipped test one
by one.

Test:
Building CXX object
llcorehttp/CMakeFiles/INTEGRATION_TEST_llcorehttp.dir/tests/test_allocator.cpp.o
Faiis with:

home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp: In
function ‘void* operator new(std::size_t)’:
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47:
error: declaration of ‘void* operator new(std::size_t) throw
(std::bad_alloc)’ has a different exception specifier
 #define THROW_BAD_ALLOC() throw(std::bad_alloc)
                                               ^
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:155:39:
note: in expansion of macro ‘THROW_BAD_ALLOC’
 void * operator new(std::size_t size) THROW_BAD_ALLOC()
                                       ^
In file included from
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0:
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:40:8:
error: from previous declaration ‘void* operator new(std::size_t)’
 void * operator new(std::size_t size) throw (std::bad_alloc);
        ^
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47:
error: declaration of ‘void* operator new [](std::size_t) throw
(std::bad_alloc)’ has a different exception specifier
 #define THROW_BAD_ALLOC() throw(std::bad_alloc)
                                               ^
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:161:41:
note: in expansion of macro ‘THROW_BAD_ALLOC’
 void * operator new[](std::size_t size) THROW_BAD_ALLOC()
                                         ^
In file included from
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0:
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:41:8:
error: from previous declaration ‘void* operator new [](std::size_t)’
 void * operator new[](std::size_t size) throw (std::bad_alloc);
        ^
The code for this test is the same as what is in viewer-release.

Distribution: gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010

My thought was that MARCO expansion had changed with -c++11 or between
gcc-4.6 and 5.5.

Bottom line is, I need help.

Nicky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20190604/29b87678/attachment.htm 


More information about the opensource-dev mailing list