summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorJasper van de Gronde <jasper.vandegronde@gmail.com>2008-07-19 11:25:01 +0000
committerjaspervdg <jaspervdg@users.sourceforge.net>2008-07-19 11:25:01 +0000
commit99809be7014844debfe1f11b4987716dea39f919 (patch)
treef848f554c1e5e49bc715bd565415f342ee961b5a /src/display
parentExclude the right(!) files when building the library (forgot to remove the ob... (diff)
downloadinkscape-99809be7014844debfe1f11b4987716dea39f919.tar.gz
inkscape-99809be7014844debfe1f11b4987716dea39f919.zip
Consistently use (create/destroy)Suite in unit tests.
(bzr r6362)
Diffstat (limited to 'src/display')
-rw-r--r--src/display/bezier-utils-test.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display/bezier-utils-test.h b/src/display/bezier-utils-test.h
index ec980810b..4e5788983 100644
--- a/src/display/bezier-utils-test.h
+++ b/src/display/bezier-utils-test.h
@@ -104,6 +104,11 @@ public:
}
virtual ~BezierUtilsTest() {}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static BezierUtilsTest *createSuite() { return new BezierUtilsTest(); }
+ static void destroySuite( BezierUtilsTest *suite ) { delete suite; }
+
void testCopyWithoutNansOrAdjacentDuplicates()
{
NR::Point const src[] = {