aboutsummaryrefslogtreecommitdiff
path: root/tests/cpfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-02-17 09:27:02 +0000
committerKaren Arutyunov <karen@codesynthesis.com>2017-02-17 16:25:55 +0300
commit3f2323dae243d7654d3319fe7f53b87062b0d62e (patch)
tree0ea14477825fb301365989460d02150ccf74711b /tests/cpfile
parent9f7edcab2b1e4bd2c8bd7abc6284bfb7dca86ed2 (diff)
Fix cpfile() to throw system_error only
Diffstat (limited to 'tests/cpfile')
-rw-r--r--tests/cpfile/driver.cxx4
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&)
{
}