// #include "core/bts_core/utest/utest.h" // #include "core/bts_core/utest/TempFile.h" // #include "../os.h" // namespace bts { // namespace os { // class FileNameSanitization : public TestSuite // { // public: // void empty_file_name_works () // { // test_equal (sanitize_file_name (""),""); // } // void legal_file_name_passes_through () // { // test_equal (sanitize_file_name ("bts_shell"),"bts_shell"); // } // void bad_file_name_is_fixed () // { // test_equal (sanitize_file_name ("bts_shell -configserver http://edge-qa/config/"), // "bts_shell -configserver http___edge-qa_config_"); // } // }; // BEGIN_TEST_SUITE(FileNameSanitization) // ADD_TEST (bad_file_name_is_fixed) // ADD_TEST (legal_file_name_passes_through) // ADD_TEST (bad_file_name_is_fixed) // END_TEST_SUITE // }}