summaryrefslogtreecommitdiffstats
path: root/src/svg/svg-length-test.h
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/svg/svg-length-test.h
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/svg/svg-length-test.h')
-rw-r--r--src/svg/svg-length-test.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/svg/svg-length-test.h b/src/svg/svg-length-test.h
index 2345803d8..829612b26 100644
--- a/src/svg/svg-length-test.h
+++ b/src/svg/svg-length-test.h
@@ -17,6 +17,11 @@ public:
SvgLengthTest() {
}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static SvgLengthTest *createSuite() { return new SvgLengthTest(); }
+ static void destroySuite( SvgLengthTest *suite ) { delete suite; }
+
void testRead()
{
for(size_t i=0; i<G_N_ELEMENTS(absolute_tests); i++) {