phoenix-firestorm/indra/llcommon/tests
Nat Goodspeed eb1bea2223 IQA-463: LLError::addRecorder() claims ownership of passed Recorder*.
That is, when the underlying LLError::Settings object is destroyed -- possibly
at termination, possibly on LLError::restoreSettings() -- the passed Recorder*
is deleted.
There was much existing code that seemed as unaware of this alarming fact as I
was myself. Passing to addRecorder() a pointer to a stack object, or to a
member of some other object, is just Bad. It might be preferable to make
addRecorder() accept std::auto_ptr<Recorder> to make the ownership transfer
more explicit -- or even boost::shared_ptr<Recorder> instead, which would
allow the caller to either forget or retain the passed Recorder.
This preliminary pass retains the Recorder* dumb pointer API, but documents
the ownership issue, and eliminates known instances of passing pointers to
anything but a standalone heap Recorder subclass object.
2012-04-23 11:26:18 -04:00
..
StringVec.h
bitpack_test.cpp
commonmisc_test.cpp
listener.h
llallocator_heap_profile_test.cpp
llallocator_test.cpp
llbase64_test.cpp
lldate_test.cpp
lldependencies_test.cpp
llerror_test.cpp IQA-463: LLError::addRecorder() claims ownership of passed Recorder*. 2012-04-23 11:26:18 -04:00
lleventcoro_test.cpp
lleventdispatcher_test.cpp
lleventfilter_test.cpp
llframetimer_test.cpp
llinstancetracker_test.cpp
lllazy_test.cpp
llleap_test.cpp On Windows, make "very large message" test ridiculously small. 2012-03-15 16:51:34 -04:00
llmemtype_test.cpp
llprocess_test.cpp Add timeout functionality to waitfor() helper functions. 2012-03-13 14:15:11 -04:00
llprocessor_test.cpp
llrand_test.cpp
llsdserialize_test.cpp
llsingleton_test.cpp
llstreamqueue_test.cpp
llstring_test.cpp
lltreeiterators_test.cpp
lluri_test.cpp
reflection_test.cpp
stringize_test.cpp
wrapllerrs.h IQA-463: LLError::addRecorder() claims ownership of passed Recorder*. 2012-04-23 11:26:18 -04:00