diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cpfile/driver.cxx | 4 | ||||
-rw-r--r-- | tests/fdstream/driver.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/cpfile/driver.cxx b/tests/cpfile/driver.cxx index 5576a4f..e2ecc04 100644 --- a/tests/cpfile/driver.cxx +++ b/tests/cpfile/driver.cxx @@ -36,7 +36,7 @@ static const char text3[] = "XAB\r\n9"; static string from_file (const path& f) { - ifdstream ifs (f, ios::binary); + ifdstream ifs (f, fdopen_mode::binary); string s (ifs.read_text ()); ifs.close (); // Not to miss failed close of the underlying file descriptor. return s; @@ -45,7 +45,7 @@ from_file (const path& f) static void to_file (const path& f, const char* s) { - ofdstream ofs (f, ios::binary); + ofdstream ofs (f, fdopen_mode::binary); ofs << s; ofs.close (); } diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx index 58b7012..748259e 100644 --- a/tests/fdstream/driver.cxx +++ b/tests/fdstream/driver.cxx @@ -92,7 +92,7 @@ static duration write_time (const path& p, const T& s, size_t n) { timestamp t (system_clock::now ()); - S os (p.string (), ofstream::out); + S os (p.string ()); os.exceptions (S::failbit | S::badbit); for (size_t i (0); i < n; ++i) @@ -114,7 +114,7 @@ read_time (const path& p, const T& s, size_t n) vector<T> v (n); timestamp t (system_clock::now ()); - S is (p.string (), ofstream::in); + S is (p.string ()); is.exceptions (S::failbit | S::badbit); for (auto& ve: v) @@ -701,7 +701,7 @@ main (int argc, const char* argv[]) // Seek for read in the binary mode. // { - ifdstream is (f, ios::binary); + ifdstream is (f, fdopen_mode::binary); char c; is.get (c); |