|
From: <sv...@va...> - 2015-03-07 12:50:13
|
Author: florian
Date: Sat Mar 7 12:49:32 2015
New Revision: 14988
Log:
Rewritten to use a single line instead of line splicing
to avoid line number differences in the reported error.
Modified:
trunk/none/tests/linux/stack-overflow.c
trunk/none/tests/linux/stack-overflow.stderr.exp
Modified: trunk/none/tests/linux/stack-overflow.c
==============================================================================
--- trunk/none/tests/linux/stack-overflow.c (original)
+++ trunk/none/tests/linux/stack-overflow.c Sat Mar 7 12:49:32 2015
@@ -1,9 +1,5 @@
/* There should be a user message about the overflow.
- Wrtten in a single line so there is no confusion on what line
+ Written in a single line so there is no confusion on what line
the overflow occurs. */
-int main(int argc, char *argv[]) \
-{ \
- volatile int arr[1000]; \
- return main(arr[argc%2], 0); \
-}
+int main(int argc, char *argv[]) { volatile int arr[1000]; return main(arr[argc%2], 0); }
Modified: trunk/none/tests/linux/stack-overflow.stderr.exp
==============================================================================
--- trunk/none/tests/linux/stack-overflow.stderr.exp (original)
+++ trunk/none/tests/linux/stack-overflow.stderr.exp Sat Mar 7 12:49:32 2015
@@ -4,7 +4,7 @@
Process terminating with default action of signal 11 (SIGSEGV)
Access not within mapped region at address 0x........
Stack overflow in thread #1: can't grow stack to 0x........
- at 0x........: main (stack-overflow.c:6)
+ at 0x........: main (stack-overflow.c:5)
If you believe this happened as a result of a stack
overflow in your program's main thread (unlikely but
possible), you can try to increase the size of the
|