rogfer01 created this revision.
rogfer01 added reviewers: mclow.lists, EricWF, rmaprath.
rogfer01 added a subscriber: cfe-commits.

Skip test that throws an exception.


https://reviews.llvm.org/D27255

Files:
  
test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp


Index: 
test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp
===================================================================
--- 
test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp
+++ 
test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp
@@ -7,7 +7,6 @@
 //
 
//===----------------------------------------------------------------------===//
 
-// XFAIL: libcpp-no-exceptions
 // <ostream>
 
 // template <class charT, class traits = char_traits<charT> >
@@ -18,6 +17,8 @@
 #include <ostream>
 #include <cassert>
 
+#include "test_macros.h"
+
 int sync_called = 0;
 
 template <class CharT>
@@ -58,6 +59,7 @@
         unitbuf(os);
     }
     assert(sync_called == 1);
+#ifndef TEST_HAS_NO_EXCEPTIONS
     {
         testbuf1<char> sb;
         std::ostream os(&sb);
@@ -73,4 +75,5 @@
         }
         assert(sync_called == 1);
     }
+#endif
 }


Index: test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp
===================================================================
--- test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp
+++ test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp
@@ -7,7 +7,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-// XFAIL: libcpp-no-exceptions
 // <ostream>
 
 // template <class charT, class traits = char_traits<charT> >
@@ -18,6 +17,8 @@
 #include <ostream>
 #include <cassert>
 
+#include "test_macros.h"
+
 int sync_called = 0;
 
 template <class CharT>
@@ -58,6 +59,7 @@
         unitbuf(os);
     }
     assert(sync_called == 1);
+#ifndef TEST_HAS_NO_EXCEPTIONS
     {
         testbuf1<char> sb;
         std::ostream os(&sb);
@@ -73,4 +75,5 @@
         }
         assert(sync_called == 1);
     }
+#endif
 }
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D27255: Protec... Roger Ferrer Ibanez via Phabricator via cfe-commits

Reply via email to