forked from boostorg/filesystem
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for the fs::copy issue in PR boostorg#70/boostorg#71
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} |