Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics: rename some tests in teshsuite/simix
[simgrid.git] / teshsuite / simix / stack-overflow / stack-overflow.tesh
diff --git a/teshsuite/simix/stack-overflow/stack-overflow.tesh b/teshsuite/simix/stack-overflow/stack-overflow.tesh
new file mode 100644 (file)
index 0000000..c7180fa
--- /dev/null
@@ -0,0 +1,15 @@
+! expect signal SIGSEGV
+$ ${bindir:=.}/stack-overflow --cfg=contexts/stack-size:96 ${srcdir:=.}/examples/platforms/small_platform.xml
+> [Tremblay:master:(1) 0.000000] [test/INFO] Launching our nice bugged recursive function...
+> Access violation detected.
+> This probably comes from a programming error in your code, or from a stack
+> overflow. If you are certain of your code, try increasing the stack size
+>    --cfg=contexts/stack-size=XXX (current size is 96 KiB).
+>
+> If it does not help, this may have one of the following causes:
+> a bug in SimGrid, a bug in the OS or a bug in a third-party libraries.
+> Failing hardware can sometimes generate such errors too.
+>
+> If you think you've found a bug in SimGrid, please report it along with a
+> Minimal Working Example (MWE) reproducing your problem and a full backtrace
+> of the fault captured with gdb or valgrind.