http://code.google.com/p/casacore/source/detail?r=21170
Modified:
/trunk/images/Images/test/tImageReorderer.cc
=======================================
--- /trunk/images/Images/test/tImageReorderer.cc Tue Oct 18 00:39:05 2011
+++ /trunk/images/Images/test/tImageReorderer.cc Wed Jan 4 04:03:36 2012
@@ -320,9 +320,16 @@
ok = False;
cerr << "Exception caught: " << x.getMesg() << endl;
}
+
+ // Try to remove the created files.
+ try {
if(workdir.exists()) {
workdir.removeRecursive();
}
+ } catch (AipsError x) {
+ cerr << "Remove exception caught: " << x.getMesg() << endl;
+ }
+
return ok ? 0 : 1;
}