global variables in the test suite

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

global variables in the test suite

DU VIGNAUD DE VILLEFORT FRANCOIS GASAPRD PHI

Hi all ,

 

 

A quick mail to let you know that the fact that we are using global variable in the test suite may lead to some dummy bugs. Yesterday I have fixed such a bug (rev 12106), in which the smilesections created for CapStripper tests were throwing disruptive exceptions during the PiecewiseYieldCurve test. Indeed if one check the number of object observing the Settings::EvaluationDate he will find something around 5000 ! Any thoughts ?

François

 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: global variables in the test suite

Luigi Ballabio
On Thu, 2007-08-02 at 10:12 +0200, DU VIGNAUD DE VILLEFORT FRANCOIS
GASAPRD PHI wrote:
> A quick mail to let you know that the fact that we are using global
> variable in the test suite may lead to some dummy bugs.

Which is why we're using the SavedSettings class all over the place.

> Yesterday I have fixed such a bug (rev 12106), in which the
> smilesections created for CapStripper tests were throwing disruptive
> exceptions during the PiecewiseYieldCurve test.

The smile sections were throwing exceptions? Were they still alive after
their test case was completed? Why?

Later,
        Luigi


--  

Every solution breeds new problems.
-- unknown



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev