Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /contrib/brl/bseg/bvxm/tests/test_voxel_world_update.cxx [583d0e] .. [872e78] Maximize Restore

  Switch to side-by-side view

--- a/contrib/brl/bseg/bvxm/tests/test_voxel_world_update.cxx
+++ b/contrib/brl/bseg/bvxm/tests/test_voxel_world_update.cxx
@@ -9,6 +9,7 @@
 #include "../bvxm_mog_grey_processor.h"
 #include <vil/vil_image_view.h>
 #include <vpgl/vpgl_proj_camera.h>
+#include <vpl/vpl.h>
 
 
 static void test_voxel_world_update()
@@ -17,12 +18,11 @@
 
   vcl_string model_dir("test_world_dir");
   if (vul_file::is_directory(model_dir))
-    vul_file::delete_file_glob(model_dir+"/*");
-  else {
-    if (vul_file::exists(model_dir))
-      vul_file::delete_file_glob(model_dir);
-    vul_file::make_directory(model_dir);
-  }
+   vpl_rmdir(model_dir.c_str());  //use this instead of vul since some MS versions hang on on Y/N?
+  else if (vul_file::exists(model_dir))
+    vpl_unlink(model_dir.c_str());
+  vul_file::make_directory(model_dir);
+
 
   vgl_point_3d<float> grid_corner(0.f,0.f,0.f);
   vgl_vector_3d<unsigned> grid_size(300,300,120);