diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-02-17 09:27:02 +0000 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-02-17 16:25:55 +0300 |
commit | 3f2323dae243d7654d3319fe7f53b87062b0d62e (patch) | |
tree | 0ea14477825fb301365989460d02150ccf74711b /tests/cpfile/driver.cxx | |
parent | 9f7edcab2b1e4bd2c8bd7abc6284bfb7dca86ed2 (diff) |
Fix cpfile() to throw system_error only
Diffstat (limited to 'tests/cpfile/driver.cxx')
-rw-r--r-- | tests/cpfile/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cpfile/driver.cxx b/tests/cpfile/driver.cxx index 7276405..732b364 100644 --- a/tests/cpfile/driver.cxx +++ b/tests/cpfile/driver.cxx @@ -101,7 +101,7 @@ main () cpfile (from, to, cpflags::none); assert (false); } - catch (const ios::failure&) + catch (const system_error&) { } @@ -174,7 +174,7 @@ main () cpfile (from, tslink, cpflags::none); assert (false); } - catch (const ios::failure&) + catch (const system_error&) { } |