Author: sebor Date: Tue Mar 25 19:32:31 2008 New Revision: 641117 URL: http://svn.apache.org/viewvc?rev=641117&view=rev Log: 2008-03-25 Martin Sebor Merged rev 641116 from trunk. * tests/self/0.new.cpp (run_test): Disabled diagnostics issued by the replacement operator new and delete defined by the test driver in response to deliberate errors caused by this test. Modified: stdcxx/branches/4.2.x/tests/self/0.new.cpp Modified: stdcxx/branches/4.2.x/tests/self/0.new.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/self/0.new.cpp?rev=641117&r1=641116&r2=641117&view=diff ============================================================================== --- stdcxx/branches/4.2.x/tests/self/0.new.cpp (original) +++ stdcxx/branches/4.2.x/tests/self/0.new.cpp Tue Mar 25 19:32:31 2008 @@ -22,7 +22,7 @@ * implied. See the License for the specific language governing * permissions and limitations under the License. * - * Copyright 1994-2006 Rogue Wave Software. + * Copyright 1994-2008 Rogue Wave Software, Inc. * **************************************************************************/ @@ -469,6 +469,11 @@ { #ifndef _RWSTD_NO_REPLACEABLE_NEW_DELETE + // disable diagnostics issued by the replacement operator new + // and delete defined by the test driver in response to deliberate + // errors caused by this test + rw_enable (rw_error, false); + # define TEST(name) \ if (rw_opt_no_ ## name) \ rw_note (0, 0, __LINE__, "%s test disabled", #name); \ @@ -493,12 +498,7 @@ } /**************************************************************************/ -/* -void* operator new (size_t n) throw (std::bad_alloc) -{ - return 0; -} -*/ + int main (int argc, char** argv) { return rw_test (argc, argv, __FILE__,