• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  Boost 9219.cpp  --------------------------------------------------------------------//
2 
3 //  Copyright Beman Dawes 2014
4 
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  See http://www.boost.org/LICENSE_1_0.txt
7 
8 //  Library home page: http://www.boost.org/libs/filesystem
9 
10 //--------------------------------------------------------------------------------------//
11 //                                                                                      //
12 //  In researching filesystem issues it is convenient to have a program that can be     //
13 //  quickly modified to test reported problems. That's the purpose of this file and     //
14 //  its associated Visual Studio and Boost.Build infrastructure.                        //
15 //                                                                                      //
16 //--------------------------------------------------------------------------------------//
17 
18 #include <boost/config/warning_disable.hpp>
19 
20 #include <boost/filesystem.hpp>
21 
22 #include <iostream>
23 #include <boost/core/lightweight_test.hpp>
24 #include <boost/detail/lightweight_main.hpp>
25 
26 using std::cout;
27 using std::endl;
28 namespace fs = boost::filesystem;
29 
30 //------------------------------------  cpp_main  --------------------------------------//
31 
cpp_main(int argc,char * argv[])32 int cpp_main(int argc, char* argv[])
33 {
34   cout << "Hello, 9219" << endl;
35   cout << "This is a test for non-Windows systems" << endl;
36 
37   BOOST_TEST(fs::exists(const_cast<char*>(".")));
38 
39   return ::boost::report_errors();
40 } // cpp_main
41