Index: tol_tests/tol/Bugzilla/bug_001497/check1.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001497/check1.tol	(revision fa76d3ab0508330a01a2b6e389e29d6132cede00)
+++ tol_tests/tol/Bugzilla/bug_001497/check1.tol	(revision fa76d3ab0508330a01a2b6e389e29d6132cede00)
@@ -0,0 +1,8 @@
+
+#Require BysMcmc;
+
+Set pkg = RequiredPackages(?);
+
+Real Ois.Store(pkg,"pkg.oza");
+
+
Index: tol_tests/tol/Bugzilla/bug_001497/check2.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001497/check2.tol	(revision fa76d3ab0508330a01a2b6e389e29d6132cede00)
+++ tol_tests/tol/Bugzilla/bug_001497/check2.tol	(revision fa76d3ab0508330a01a2b6e389e29d6132cede00)
@@ -0,0 +1,5 @@
+
+Set pkg = { Include("pkg.oza") };
+
+Real pkg.num = RequireSetOfPackages(pkg);
+
Index: tol_tests/tol/Bugzilla/bug_001497/test.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001497/test.tol	(revision fa76d3ab0508330a01a2b6e389e29d6132cede00)
+++ tol_tests/tol/Bugzilla/bug_001497/test.tol	(revision fa76d3ab0508330a01a2b6e389e29d6132cede00)
@@ -0,0 +1,28 @@
+//////////////////////////////////////////////////////////////////////////////
+// FILE   : test.tol
+// PURPOSE: test for a resolved bug
+//////////////////////////////////////////////////////////////////////////////
+
+//Sets the bugzilla identifier number, your e-mail and the bugŽs summary 
+  Real bugNum_ = 1489;
+  Text email_ = "vdebuen@tol-project.org"; 
+  Text summary_ = "Error al destruir un NonLinGloOpt::@Problem";
+  Text link_ = GetTolBugzillaLink(bugNum_);
+
+//Write here the initial test TOL code if needed
+  Real numErr0 = Copy(NError);
+  Set check1 = Include( "check1.tol" );
+  Real numErr1 = Copy(NError);
+
+  Set partialResults_ = [[ numErr0,numErr1, numObj.0, numObj.1 ]];
+
+//This is a messure of the success of the test 
+  Real quality_ = ( numErr1 == numErr0, numObj.1==numObj.0+2 );
+
+//Return the results 
+  Set resultStr_ = @strTestStatus(summary_, link_, quality_,
+                    "Partial results = "<<partialResults_,
+                    "NO DBServerType", "NO DBServerHost", "NO DBAlias",
+                    email_);
+  WriteLn(""<<resultStr_);
+  resultStr_
