Skip to content

Commit

Permalink
Add a test for the fs::copy issue in PR boostorg#70/boostorg#71
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Sep 5, 2018
1 parent ad406ba commit a183553
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Jamfile.v2
Expand Up @@ -42,4 +42,7 @@ path-constant HERE : . ;

# `quick` target (for CI)
[ run quick.cpp ]

# Tests for specific issues
[ run issues/70-71-copy.cpp ]
;
20 changes: 20 additions & 0 deletions test/issues/70-71-copy.cpp
@@ -0,0 +1,20 @@

// Copyright 2018 Peter Dimov.
//
// 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

// See library home page at http://www.boost.org/libs/filesystem

#include <boost/filesystem.hpp>
#include <boost/core/lightweight_test.hpp>

namespace fs = boost::filesystem;

int main()
{
BOOST_TEST_THROWS( fs::copy( "/tmp/non-existent-a", "/tmp/non-existent-b" ), std::exception );
return boost::report_errors();
}

0 comments on commit a183553

Please sign in to comment.