summaryrefslogtreecommitdiffstats
path: root/src/util
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/util
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/util')
-rw-r--r--src/util/list-container-test.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/list-container-test.h b/src/util/list-container-test.h
index 1c4fe511b..08e7cfa41 100644
--- a/src/util/list-container-test.h
+++ b/src/util/list-container-test.h
@@ -35,6 +35,11 @@ public:
}
virtual ~ListContainerTest() {}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static ListContainerTest *createSuite() { return new ListContainerTest(); }
+ static void destroySuite( ListContainerTest *suite ) { delete suite; }
+
void testRangeConstructor()
{
int const values[]={1,2,3,4};