Commit Graph

125 Commits

Author SHA1 Message Date
Beman
bf2f23efc5 C++17 20.4.2.1.4 [bitmask.types] complete and passing all tests. 2017-08-23 21:41:11 -04:00
Beman
cc94b12f2f Move recursive_directory_iterator tests to operations_test.cpp to avoid the file system race conditions (duh!) that were causing apparently random failures when IDEs or build systems were running many tests in parallel. 2017-01-25 10:54:04 -05:00
Beman
de05529917 Change path::create_directories() to deal with trailing directory-separator now encoded as empty path. Add test cases. 2017-01-25 07:10:36 -05:00
Beman
6dbbc24e90 Replace deprecated detail/lightweight_test.hpp with core/lightweight_main.hpp. 2017-01-23 07:15:30 -05:00
Beman
edc8627838 Merge branch 'develop' into v4 2017-01-09 10:20:36 -05:00
Beman
2550f407f4 MinGW defines __MINGW32__ rather than _MSC_VER, so also test for __MINGW32__ to see if setenv/unsetenv workaround needed. 2016-12-30 10:09:31 -05:00
Beman
163631cc7d ticket #12574 was just user confusion, but are the tests are worth keeping. 2016-11-28 08:29:08 -05:00
Beman
15c7706111 Fix create directory testing boo boo; Turns out " " is a valid file and directory name on Linux (and I'm guessing other POSIX-like systems). Add a POSIX-only test; "/foo" was reported to cause a crash on an earlier version. Don't test this on Windows since a user may well have sufficient permissions to create a directory in root. 2016-11-24 14:34:00 -05:00
Beman Dawes
cbefb2b9f0 Merge pull request #30 from thtrummer/develop
Fix warning, build error, for GCC under Cygwin
2016-11-23 10:46:37 -05:00
Beman
216720de55 Fix #12495, create_directories() crashes when passed empty string as path, from Samantha Ritter. Also affected create_directory(). Charles Olivi submitted a pull request with some particularly helpful test cases. 2016-11-23 09:58:43 -05:00
Beman
5004d7b177 Fix #12578 - Bug in directory_iterator, recursive_directory_iterator, equality testing of copied iterator also at end. 2016-11-23 09:21:32 -05:00
Beman
ec46b843b7 The comment for the prior commit was wrong. There is no replace_filename bug and there are test cases in operations_test.cpp that would have detected such a bug. The confusion was caused when resolving merge conflicts failed to remove an obsolete comment. 2016-07-28 10:19:56 -04:00
Beman
aa6014f3bb Merge branch 'feature/directory-entry-cache-refresh' into v4. Unstable due to replace_filename bug in operations.cpp directory_iterator_increment (and lack of test case that detects the bug), lack of POSIX directory_entry caching, and missing directory_entry query functions. 2016-07-28 08:36:46 -04:00
Beman
1cd06e340b Implement much of R0317R1, Directory Entry Caching for Filesystem (R1), including full refresh() for Windows. Still missing most of the status query functions. 2016-07-27 10:12:56 -04:00
Beman
5dd8b918db Provide typedef file_time_type. copy_file() effects updated to support all applicable copy_options effects: none, skip_existing, overwrite_existing, and update_existing. Test cases added accordingly. 2016-07-24 16:03:08 -04:00
Beman
72fedeaaf5 Update class enum copy_options to conform with std library. 2016-07-22 08:21:27 -04:00
Beman
1a2d1b2510 Change enum file_type to class enum file_type 2016-07-20 16:26:25 -04:00
Thomas Trummer
e4d01fc006 Fix build error when using C++11 under Cygwin
http://www.boost.org/development/tests/develop/developer/output/timber-cygwin-boost-bin-v2-libs-filesystem-test-operations_test-test-gcc-5-4-0-debug.html

(Assuming the #ifdef is a copy & paste error)
2016-07-05 11:33:12 +02:00
Beman
2f6391b931 Add class path constexpr constants separator and dot of the type appropriate for the platform, and add class path member query functions filename_is_dot() and filename_is_dot_dot(). These add convenience and the implementations may be more efficient that user coded equivalent functions. Also add detail functions is_directory_separator() and is_element_separator(), and replace all uses of local is_separator() in path.cpp with detail::is_directory_separator(). 2015-12-01 10:17:45 -05:00
Beman
461118d68c Remove debug stmts that should have been removed by prior commit. 2015-09-08 16:21:01 -04:00
Beman
40526c67f2 Clean up some minor cygwin test problems. 2015-09-08 15:40:25 -04:00
Beman
5610f974be Merge branch 'feature/relative2' into develop 2015-09-04 15:24:22 -04:00
Beman
011522bd42 Fix #7258, create_directories returns false if the path ends with a slash. Also fix related issues if path contains dot or dot-dot elements, and add test cases to the test suite. 2015-09-02 08:24:41 -04:00
Beman
c739cee694 Apply normal() to weakly_canonical results, but only when know to be needed or it is not known if it may be needed. 2015-08-19 08:43:36 -04:00
Beman
7d6429554a Bring operational functions weakly_canonical() and relative() up to production quality: move implementations to operations.cpp, add error handling, replace tail recursion with iteration, rename weak_canonical to weakly_canonical. The weak_canonical name grated on me every type I used it. 2015-08-10 07:10:59 -04:00
Beman
8a8c8abecc Rename semi_canonical() to weak_canonical. The STL uses "weak" to denote reduced requirements. 2015-08-08 05:56:55 -04:00
Beman
dc794ea95b Merge branch 'feature/relative' into feature/relative2 2015-08-06 08:08:46 -04:00
Beman
706cf988a9 Revise get_temp_directory() test cases. Drive-by warning removal and partial fix for TortoiseGit-related test harness crashes. 2015-02-03 12:11:44 -05:00
Beman
a89b7af83a Comment out test case until fix is applied. Drive by fix of two curly brace errors that happened to cancel each other out. 2015-01-31 08:56:07 -05:00
Beman
bb5a0ff09d Clear warnings, including new warnings from VC++ 2015 preview. 2015-01-05 10:34:24 -05:00
Beman
9fd93a2008 Fix ticket #7018, operations_test.cpp does not correctly use setenv, including the suggested setenv* void fix. Added comment explaining choice of void fix rather than _putenv fix. 2014-12-30 11:59:53 -05:00
Beman
bf1339e282 Remove use of <boost/test/prg_exec_monitor.hpp>. It has caused trouble for years, and I'm tired of fighting with it. The last straw was adding a Cygwin gcc toolset, only to have <boost/test/prg_exec_monitor.hpp> fail to link. Change to always use <boost/detail/lightweight_main.hpp>, which is trouble-free. 2014-08-06 12:16:06 -04:00
Beman
750a82e20d Revert "Merge branch 'develop' of github.com:boostorg/filesystem into develop"
This reverts commit 4610afc49e, reversing
changes made to 6623bde4fe.
2014-08-05 09:16:57 -04:00
Beman
cc99cc6ceb Merge branch 'develop' into ts-develop 2014-07-31 17:24:34 -04:00
Beman
02b5767bf1 Shorten name of operations_test temp directory to shorten console commands when debugging. 2014-07-28 08:30:24 -04:00
Beman
69d16ad72b Correct some tests. 2014-07-25 15:26:33 -04:00
Beman
d774842f39 Initial directory junction support. See release_history.html 2014-07-25 11:00:54 -04:00
Beman
f0ce9bd649 Missed a few perms value changes that were on next DTS page. 2014-07-23 15:58:04 -04:00
Beman
038bce7e2d DTS: enum perms changed to enum class perms. Constant names have changed; synonyms provided. 2014-07-23 15:35:44 -04:00
Beman
b5dd289799 Remove test that fails if Windows Explorer with TortoiseGit plug-in is running. Suspect TGitCache process is briefly delaying some effects of file deletion. 2014-07-23 09:52:36 -04:00
Beman
98b29a72e5 Fix-up of prior merge conflict resolution from develop. 2014-07-23 09:39:26 -04:00
Beman
99a94662b2 Merge branch 'develop' into ts-develop
Conflicts:
	include/boost/filesystem/operations.hpp
	test/operations_test.cpp
2014-07-22 20:55:58 -04:00
beman
5b0beaa91f Fix test code that failed on dangling symlink left by prior test 2014-07-20 18:17:35 -04:00
Beman
040be88815 Rework the recursive_directory_iterator::increment function to always make progress, even when errors occur. 2014-07-20 16:44:28 -04:00
Beman
514f8d33e2 Tweak spacing for test reporting. 2014-07-16 08:59:44 -04:00
Beman
6ed4c4f6f7 Apply Christian Hammerl's fix for tickets 9683 and 10187. Supply test cases that should work for both POSIX and Windows. Tested with fix commented out to verify test cases do detect the problem. 2014-07-16 08:48:44 -04:00
Beman
044b98373c All char16_t/char32_t dependencies #ifdef'ed out. All test/msvc/filesystem.sln tests pass. 2014-07-10 14:43:22 -04:00
Beman
e59aecbcbe Update the tests. Unstable. 2014-07-09 08:57:45 -04:00
Beman
b1b1cea3c4 Rename relative to lexically_relative. Add semi_canonical() and relative(). 2014-05-29 15:42:11 -04:00
Beman Dawes
1170b12166 Generate unique name for operation_test directory. This prevents tests failures if static and shared tests happen to run in parallel.
[SVN r79756]
2012-07-26 12:54:58 +00:00