Skip to content

Commit

Permalink
Update stream_state_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 17, 2023
1 parent fa8d08c commit 65fc893
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/stream_state_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,27 @@ test_suite* init_unit_test_suite(int, char* [])
test->add(BOOST_TEST_CASE(&wrap_throw_delayed<&test_write>::execute));
#endif

// MSSTL and libc++ don't handle exceptions from seek correctly
// MSSTL and libc++ don't handle exceptions from seekg correctly
#if !defined(_CPPLIB_VER) && !defined(_LIBCPP_VERSION)

test->add(BOOST_TEST_CASE(&wrap_nothrow <&test_seekg>::execute));
test->add(BOOST_TEST_CASE(&wrap_throw <&test_seekg>::execute));
#ifndef __CYGWIN__
test->add(BOOST_TEST_CASE(&wrap_throw_delayed<&test_seekg>::execute));
#endif


#endif // !defined(_CPPLIB_VER) && !defined(_LIBCPP_VERSION)

// Since C++11, seekp does not catch exceptions
#if 0

test->add(BOOST_TEST_CASE(&wrap_nothrow <&test_seekp>::execute));
test->add(BOOST_TEST_CASE(&wrap_throw <&test_seekp>::execute));
#ifndef __CYGWIN__
test->add(BOOST_TEST_CASE(&wrap_throw_delayed<&test_seekp>::execute));
#endif

#endif // !defined(_CPPLIB_VER) && !defined(_LIBCPP_VERSION)
#endif

return test;
}

0 comments on commit 65fc893

Please sign in to comment.