Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2909)

Issue 3751042: Review: dump gtest and boost::test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by larrygritz
Modified:
13 years, 3 months ago
Reviewers:
malcolmhumphreys, nemec, oiio-dev
Base URL:
http://svn.openimageio.org/oiio/trunk/
Visibility:
Public.

Description

I've been plagued for some time by seg faults in some of the unit tests (only some tests, only some platforms). Frankly, I'm not sure if we're using the boost::test framework incorrectly, or if it's just inherently buggy, and at this point I don't care. We use so very little of the boost test functionality, I decided to see how hard it would be to just roll my own macros, just "good enough" for our unit tests. Works fine, no loss in functionality, no crashes, and I'm relieved to be able to dump both the boost::test and google test dependencies. Objections?

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -384 lines) Patch
src/cmake/externalpackages.cmake View 2 chunks +1 line, -23 lines 0 comments Download
src/include/unittest.h View 1 chunk +94 lines, -0 lines 0 comments Download
src/libOpenImageIO/CMakeLists.txt View 2 chunks +3 lines, -8 lines 0 comments Download
src/libOpenImageIO/atomic_test.cpp View 5 chunks +15 lines, -5 lines 0 comments Download
src/libOpenImageIO/imagebufalgo_test.cpp View 21 chunks +266 lines, -261 lines 0 comments Download
src/libOpenImageIO/imagespec_test.cpp View 5 chunks +58 lines, -47 lines 0 comments Download
src/libOpenImageIO/spinlock_test.cpp View 4 chunks +14 lines, -5 lines 0 comments Download
src/libOpenImageIO/strutil_test.cpp View 1 chunk +41 lines, -32 lines 0 comments Download
src/libOpenImageIO/ustring_test.cpp View 3 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 3
larrygritz
13 years, 4 months ago (2011-01-02 05:59:45 UTC) #1
nemec_google.com
I totally understand where you're coming from - no objections from me. The one feature ...
13 years, 3 months ago (2011-01-04 23:14:51 UTC) #2
malcolmhumphreys_mac.com
13 years, 3 months ago (2011-01-07 09:15:14 UTC) #3
LGTM, this fixed some segfaults I was getting in the unit tests on osx.

.malcolm

On 02/01/2011, at 4:59 PM, larrygritz@gmail.com wrote:

> Reviewers: oiio-dev_openimageio.org,
> 
> Description:
> I've been plagued for some time by seg faults in some of the unit tests
> (only some tests, only some platforms).  Frankly, I'm not sure if we're
> using the boost::test framework incorrectly, or if it's just inherently
> buggy, and at this point I don't care.  We use so very little of the
> boost test functionality, I decided to see how hard it would be to just
> roll my own macros, just "good enough" for our unit tests.  Works fine,
> no loss in functionality, no crashes, and I'm relieved to be able to
> dump both the boost::test and google test dependencies.
> 
> Objections?
> 
> 
> 
> 
> Please review this at http://codereview.appspot.com/3751042/
> 
> Affected files:
>  src/cmake/externalpackages.cmake
>  src/include/unittest.h
>  src/libOpenImageIO/CMakeLists.txt
>  src/libOpenImageIO/atomic_test.cpp
>  src/libOpenImageIO/imagebufalgo_test.cpp
>  src/libOpenImageIO/imagespec_test.cpp
>  src/libOpenImageIO/spinlock_test.cpp
>  src/libOpenImageIO/strutil_test.cpp
>  src/libOpenImageIO/ustring_test.cpp
> 
> 
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b