From a4049491b327c92915bd0559e542147f13f4cbc4 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 17 Mar 2014 15:53:32 +0100 Subject: [PATCH 1/1] Forgot to add those files. --- teshsuite/simix/CMakeLists.txt | 2 ++ teshsuite/simix/stack_overflow.tesh | 5 +++++ teshsuite/simix/stack_overflow.xml | 14 ++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 teshsuite/simix/stack_overflow.tesh create mode 100644 teshsuite/simix/stack_overflow.xml diff --git a/teshsuite/simix/CMakeLists.txt b/teshsuite/simix/CMakeLists.txt index 58e3f3ff3f..8a22a1af57 100644 --- a/teshsuite/simix/CMakeLists.txt +++ b/teshsuite/simix/CMakeLists.txt @@ -13,10 +13,12 @@ set(tesh_files ${CMAKE_CURRENT_SOURCE_DIR}/factory_raw.tesh ${CMAKE_CURRENT_SOURCE_DIR}/factory_thread.tesh ${CMAKE_CURRENT_SOURCE_DIR}/factory_ucontext.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.tesh PARENT_SCOPE ) set(xml_files ${xml_files} + ${CMAKE_CURRENT_SOURCE_DIR}/stack_overflow.xml PARENT_SCOPE ) set(teshsuite_src diff --git a/teshsuite/simix/stack_overflow.tesh b/teshsuite/simix/stack_overflow.tesh new file mode 100644 index 0000000000..5bbebb5e9b --- /dev/null +++ b/teshsuite/simix/stack_overflow.tesh @@ -0,0 +1,5 @@ +! expect signal SIGSEGV +$ ./simix/stack_overflow ${srcdir:=.}/simix/stack_overflow.xml +> [Tremblay:master:(0) 0.000000] [test/INFO] Launching our nice bugged recursive function... +> Access violation detected. This can result from a stack overflow. +> Try to increase stack size with --cfg=contexts/stack_size (current size is 8192 KiB). diff --git a/teshsuite/simix/stack_overflow.xml b/teshsuite/simix/stack_overflow.xml new file mode 100644 index 0000000000..8ac632add2 --- /dev/null +++ b/teshsuite/simix/stack_overflow.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + -- 2.20.1