From a870ef845ee4b5a0d722d735f441fa12bb3084a9 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 7 Jul 2005 14:51:20 +0000 Subject: [PATCH] We can't reliably generate *and compare* stacktraces within the testsuite, so don't even attempt. git-svn-id: https://svn.dealii.org/trunk@11097 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/Makefile | 3 +-- tests/base/stack_trace_01.cc | 49 ------------------------------------ tests/base/stack_trace_02.cc | 49 ------------------------------------ 3 files changed, 1 insertion(+), 100 deletions(-) delete mode 100644 tests/base/stack_trace_01.cc delete mode 100644 tests/base/stack_trace_02.cc diff --git a/tests/base/Makefile b/tests/base/Makefile index 6a3f99bf23..7c51f7181a 100644 --- a/tests/base/Makefile +++ b/tests/base/Makefile @@ -38,8 +38,7 @@ tests_x = logtest \ anisotropic_* \ hierarchical \ data_out_base \ - function_parser \ - stack_trace_* + function_parser # from above list of regular expressions, generate the real set of # tests diff --git a/tests/base/stack_trace_01.cc b/tests/base/stack_trace_01.cc deleted file mode 100644 index 0042ac7c42..0000000000 --- a/tests/base/stack_trace_01.cc +++ /dev/null @@ -1,49 +0,0 @@ -//---------------------------- stack_trace_01.cc --------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors -// -// This file is subject to QPL and may not be distributed -// without copyright and license information. Please refer -// to the file deal.II/doc/license.html for the text and -// further information on this license. -// -//---------------------------- stack_trace_01.cc --------------------------- - - -#include "../tests.h" -#include -#include -#include -#include - -// test the stack trace generation when hitting an Assert(...) - - -void test1 () -{ - int i = 0; - Assert (i!=0, ExcMessage ("Gotcha!")); -} - -void test2 () -{ - test1 (); -} - - -int main () -{ - std::ofstream logfile("stack_trace_01.output"); - deallog.attach(logfile); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - try { test2 (); } - catch (std::exception &exc) { - deallog << " caught exception:" << std::endl - << exc.what() << std::endl; - } -} - diff --git a/tests/base/stack_trace_02.cc b/tests/base/stack_trace_02.cc deleted file mode 100644 index 4144b46a8d..0000000000 --- a/tests/base/stack_trace_02.cc +++ /dev/null @@ -1,49 +0,0 @@ -//---------------------------- stack_trace_02.cc --------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors -// -// This file is subject to QPL and may not be distributed -// without copyright and license information. Please refer -// to the file deal.II/doc/license.html for the text and -// further information on this license. -// -//---------------------------- stack_trace_02.cc --------------------------- - - -#include "../tests.h" -#include -#include -#include -#include - -// test the stack trace generation when hitting an Assert(...) - - -void test1 () -{ - // access invalid component - ConstantFunction<2>(1.).value (Point<2>(), 42); -} - -void test2 () -{ - test1 (); -} - - -int main () -{ - std::ofstream logfile("stack_trace_02.output"); - deallog.attach(logfile); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - try { test2 (); } - catch (std::exception &exc) { - deallog << " caught exception:" << std::endl - << exc.what() << std::endl; - } -} - -- 2.39.5