diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-13 12:45:55 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-13 12:45:55 +0300 |
commit | 132522ca4c895e9b07d7e323d5529474806e5829 (patch) | |
tree | 2c6bafdec5c51941190c3362c5a0200852f89819 /tests/parser/driver.cxx | |
parent | 193efb512ffbc2231ef5c48699d51fbae3f3f9f1 (diff) |
Fix stream failures handling in parser/serializer tests
Diffstat (limited to 'tests/parser/driver.cxx')
-rw-r--r-- | tests/parser/driver.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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 ("<root/>"); - 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&) { } |