// Copyright (c) 2006 Ole Christian Weidner (oweidner@cct.lsu.edu) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include "test_cleanup.hpp" using namespace cleanup; suite::suite () : test_suite ("cleanup dummy test") { } suite::~suite() { SAGA_VERBOSE(1) { std::cerr << "[CLEANUP] Removing temporary .ini files..." << std::endl; } std::vector ::iterator it = config_files_.begin(); while( it != config_files_.end() ) { SAGA_VERBOSE(1) { std::cerr << "[CLEANUP] |--> " << it->string() << std::endl; } boost::filesystem::remove(*it); it++; } } void suite::add_file(boost::filesystem::path config_file) { config_files_.push_back(config_file); } void suite::add_library_handle(boost::plugin::dll dll) { library_handles_.push_back(dll); } void suite::add_helper_object(saga::test::test_helper_utils* util) { helper_objects_.push_back(util); }