• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  filesystem/bug/bug.cpp
2 
3 #include <boost/detail/lightweight_test_report.hpp>
4 #include <boost/filesystem.hpp>
5 
6 namespace fs = boost::filesystem;
7 
test_main(int,char * [])8 int test_main(int, char*[])     // note name
9 {
10   BOOST_TEST(2 + 2 == 5);       // one convertible-to-bool argument
11   BOOST_TEST_EQ(4 + 4, 9);      // two EqualityComparible arguments
12   BOOST_TEST(fs::exists("."));  // should pass, so nothing reported
13 
14   return ::boost::report_errors();   // required
15 }
16 
17 //  Copyright Beman Dawes 2014
18 //  Distributed under the Boost Software License, Version 1.0.
19 //  www.boost.org/LICENSE_1_0.txt
20