From 3f2323dae243d7654d3319fe7f53b87062b0d62e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 17 Feb 2017 09:27:02 +0000 Subject: Fix cpfile() to throw system_error only --- tests/cpfile/driver.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cpfile/driver.cxx') 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&) { } -- cgit v1.1