From e08aaee1a489c8a89b0afb7eaaf28d23e45e515e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 15 Jun 2010 02:15:33 +0000 Subject: [PATCH] Fix one test. Explanation in the comment at the top. git-svn-id: https://svn.dealii.org/trunk@21209 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/sparse_matrix_01a.cc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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; -- 2.39.5