Hey,

2010/11/25 Gaetano Mendola <[email protected]>:
> Hi all,
> I'm trying to write some unit test for our application.
>
> I'm experiencing a segmentation fault when the application class instance
> is destroyed, the following example is enough:

Oops. Fixed in latest git.

You can easily back-port the fix below to your Wt version, if you prefer so:

Regards,
koen

commit a1c2942c368d2f3c32ea75a832815c4a4d98c328
Author: Koen Deforche <[email protected]>
Date:   Thu Nov 25 15:11:57 2010 +0100

    dispose session before deleting the controller

diff --git a/src/Wt/Test/WTestEnvironment.C b/src/Wt/Test/WTestEnvironment.C
index 1c8534a..e94f13e 100644
--- a/src/Wt/Test/WTestEnvironment.C
+++ b/src/Wt/Test/WTestEnvironment.C
@@ -77,6 +77,8 @@ void WTestEnvironment::init(EntryPointType type)
 WTestEnvironment::~WTestEnvironment()
 {
   delete WebSession::Handler::instance();
+  theSession_.reset();
+
   delete controller_;
   delete configuration_;
 }

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to