1714
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
1447
|
3 |
"{ Package: 'stx:goodies/regression' }"
|
71
|
4 |
|
|
5 |
"{ NameSpace: RegressionTests }"
|
|
6 |
|
99
|
7 |
TestCase subclass:#StackFrameTest
|
71
|
8 |
instanceVariableNames:''
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
1160
|
11 |
category:'tests-Regression-RuntimeSystem'
|
71
|
12 |
!
|
|
13 |
|
|
14 |
|
99
|
15 |
!StackFrameTest methodsFor:'tests'!
|
71
|
16 |
|
145
|
17 |
testUnlimitedStack1
|
1714
|
18 |
self
|
|
19 |
skipIf:(OperatingSystem isMSDOSlike and:[ExternalAddress pointerSize == 8])
|
|
20 |
description:'Fails under Win64 (stx will exit), requires deeper inspection'.
|
145
|
21 |
|
1714
|
22 |
10 timesRepeat:[
|
|
23 |
|a|
|
|
24 |
|
|
25 |
a := Array with:('1' copy) with:('2' copy) with:('3' copy) with:('4' copy) with:('5' copy).
|
|
26 |
self unlimitedStackTest1:a.
|
|
27 |
true.
|
1447
|
28 |
]
|
145
|
29 |
|
|
30 |
"
|
|
31 |
self run:#testUnlimitedStack1
|
|
32 |
"
|
|
33 |
!
|
|
34 |
|
71
|
35 |
unlimitedStackTest1:anArray
|
|
36 |
"
|
|
37 |
[
|
|
38 |
|a|
|
|
39 |
|
|
40 |
a := Array with:'1' copy with:'2' copy with:'3' copy with:'4' copy with:'5' copy.
|
|
41 |
self unlimitedStackTest1:a.
|
|
42 |
true.
|
|
43 |
] whileTrue
|
|
44 |
"
|
|
45 |
%{ /* UNLIMITEDSTACK */
|
|
46 |
|
|
47 |
OBJ __returnArray;
|
|
48 |
OBJ __symbol;
|
|
49 |
OBJ __returnCode;
|
|
50 |
|
2123
|
51 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[0])) {
|
|
52 |
printf("OOPS\n");
|
71
|
53 |
};
|
2123
|
54 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[1])) {
|
|
55 |
printf("OOPS\n");
|
71
|
56 |
};
|
2123
|
57 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[2])) {
|
|
58 |
printf("OOPS\n");
|
71
|
59 |
};
|
2123
|
60 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[3])) {
|
|
61 |
printf("OOPS\n");
|
71
|
62 |
};
|
2123
|
63 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[4])) {
|
|
64 |
printf("OOPS\n");
|
71
|
65 |
};
|
|
66 |
__PROTECT__(anArray);
|
|
67 |
__scavenge();
|
|
68 |
__UNPROTECT__(anArray);
|
|
69 |
|
|
70 |
|
2123
|
71 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[0])) {
|
|
72 |
printf("OOPS2\n");
|
71
|
73 |
};
|
2123
|
74 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[1])) {
|
|
75 |
printf("OOPS2\n");
|
71
|
76 |
};
|
2123
|
77 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[2])) {
|
|
78 |
printf("OOPS2\n");
|
71
|
79 |
};
|
2123
|
80 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[3])) {
|
|
81 |
printf("OOPS2\n");
|
71
|
82 |
};
|
2123
|
83 |
if (!__isStringLike(__ArrayInstPtr(anArray)->a_element[4])) {
|
|
84 |
printf("OOPS2\n");
|
71
|
85 |
};
|
|
86 |
%}.
|
2123
|
87 |
|
|
88 |
"Modified: / 22-03-2019 / 03:01:38 / Claus Gittinger"
|
71
|
89 |
! !
|
|
90 |
|
|
91 |
!StackFrameTest class methodsFor:'documentation'!
|
|
92 |
|
|
93 |
version
|
|
94 |
^ '$Header$'
|
|
95 |
! !
|
1160
|
96 |
|