diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-11 19:21:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-11 19:21:16 +0200 |
| commit | 4584924f8d6d803d58cbd64c36f6f82ca20ff0d0 (patch) | |
| tree | 8b0bd1ab7926ed5bb7bd4520a5dcd977c001e164 /test/test.cc | |
| parent | a8d652b787b986ec5552816ec24367d98243f6fa (diff) | |
Run verification tests with a space in the XSD path to trigger an old bug.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc index c90a38ac..3933e430 100644 --- a/test/test.cc +++ b/test/test.cc @@ -45,6 +45,7 @@ using std::min; using std::list; boost::filesystem::path private_test; +boost::filesystem::path xsd_test = "build/test/xsd with spaces"; struct TestConfig { @@ -54,6 +55,14 @@ struct TestConfig if (boost::unit_test::framework::master_test_suite().argc >= 2) { private_test = boost::unit_test::framework::master_test_suite().argv[1]; } + + using namespace boost::filesystem; + boost::system::error_code ec; + remove_all (xsd_test, ec); + boost::filesystem::create_directory (xsd_test); + for (directory_iterator i = directory_iterator("xsd"); i != directory_iterator(); ++i) { + copy_file (*i, xsd_test / i->path().filename()); + } } }; |
