From: bangerth Date: Tue, 15 Jun 2010 02:15:33 +0000 (+0000) Subject: Fix one test. Explanation in the comment at the top. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7935d80632916d966eb8f6017b434c614ff4de4;p=dealii-svn.git Fix one test. Explanation in the comment at the top. git-svn-id: https://svn.dealii.org/trunk@21209 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/sparse_matrix_01a.cc b/tests/bits/sparse_matrix_01a.cc index a140c12076..483debd808 100644 --- a/tests/bits/sparse_matrix_01a.cc +++ b/tests/bits/sparse_matrix_01a.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -14,7 +14,8 @@ // check setting elements in a sparse matrix using SparseMatrix::set(). make // sure they are correct, and make sure that for the nonexisting entries -// SparseMatrix::el() returns zero and operator() throws an exception +// SparseMatrix::el() returns zero (operator() terminates with an exception +// since sometime in the first half of 2010). #include "../tests.h" #include @@ -50,17 +51,6 @@ void test () else { Assert (m.el(i,j) == 0, ExcInternalError()); - bool exc_thrown = false; - double d; - try - { - d = m(i,j); - } - catch (const std::exception &) - { - exc_thrown = true; - } - Assert (exc_thrown == true, ExcInternalError()); } deallog << "OK" << std::endl;