From 132522ca4c895e9b07d7e323d5529474806e5829 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 13 Sep 2016 12:45:55 +0300 Subject: Fix stream failures handling in parser/serializer tests --- tests/parser/driver.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/parser') diff --git a/tests/parser/driver.cxx b/tests/parser/driver.cxx index c1c6f3d..25864aa 100644 --- a/tests/parser/driver.cxx +++ b/tests/parser/driver.cxx @@ -41,14 +41,13 @@ main () try { istringstream is (""); - is.exceptions (ios_base::badbit | ios_base::failbit); parser p (is, "test"); is.setstate (ios_base::badbit); p.next (); assert (false); } - catch (const ios_base::failure&) + catch (const xml::exception&) { } -- cgit v1.1