/[bison]/bison/tests/torture.at
ViewVC logotype

Diff of /bison/tests/torture.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.7 by akim, Mon Jan 7 08:42:59 2002 UTC revision 1.1.2.8 by akim, Thu Feb 7 17:30:49 2002 UTC
# Line 85  AT_SETUP([Exploding the Stack Size with Line 85  AT_SETUP([Exploding the Stack Size with
85  AT_DATA_STACK_TORTURE  AT_DATA_STACK_TORTURE
86    
87  # Below the limit of 200.  # Below the limit of 200.
88  AT_CHECK([input 20], 0, [], [ignore])  AT_CHECK([./input 20], 0, [], [ignore])
89  # Two enlargements: 2 * 2 * 200.  # Two enlargements: 2 * 2 * 200.
90  AT_CHECK([input 900], 0, [], [ignore])  AT_CHECK([./input 900], 0, [], [ignore])
91  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we
92  # multiply by two starting at 200 => 5120 is the last possible).  # multiply by two starting at 200 => 5120 is the last possible).
93  AT_CHECK([input 10000], 1, [], [ignore])  AT_CHECK([./input 10000], 1, [], [ignore])
94    
95  AT_CLEANUP  AT_CLEANUP
96    
# Line 106  AT_SETUP([Exploding the Stack Size with Line 106  AT_SETUP([Exploding the Stack Size with
106  AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]])  AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]])
107    
108  # Below the limit of 200.  # Below the limit of 200.
109  AT_CHECK([input 20], 0, [], [ignore])  AT_CHECK([./input 20], 0, [], [ignore])
110  # Two enlargements: 2 * 2 * 200.  # Two enlargements: 2 * 2 * 200.
111  AT_CHECK([input 900], 0, [], [ignore])  AT_CHECK([./input 900], 0, [], [ignore])
112  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we  # Fails: beyond the limit of 10,000 (which we don't reach anyway since we
113  # multiply by two starting at 200 => 5120 is the possible).  # multiply by two starting at 200 => 5120 is the possible).
114  AT_CHECK([input 10000], 1, [], [ignore])  AT_CHECK([./input 10000], 1, [], [ignore])
115    
116  AT_CLEANUP  AT_CLEANUP
117    

Legend:
Removed from v.1.1.2.7  
changed lines
  Added in v.1.1.2.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26