Levente Uzonyi uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ul.234.mcz
==================== Summary ====================
Name: KernelTests-ul.234
Author: ul
Time: 16 September 2012, 9:59:01.665 pm
UUID: 7f4e2626-2932-9c42-b20a-fc5494715f73
Ancestors: KernelTests-ul.233
#testPerformCanExecutelongMethodWithTemps and #testPerformInSuperclassCanExecutelongMethodWithTemps from CompiledMethodTest are expected to fail on the interpreter VMs.
=============== Diff against KernelTests-ul.233 ===============
Item was added:
+ ----- Method: CompiledMethodTest>>expectedFailures (in category 'as yet unclassified') -----
+ expectedFailures
+
+ Smalltalk isRunningCog ifTrue: [ ^super expectedFailures ].
+ ^#(
+ "The following two are not supported by the interpreter VM. See their comments for details"
+ testPerformCanExecutelongMethodWithTemps
+ testPerformInSuperclassCanExecutelongMethodWithTemps
+ )!
Levente Uzonyi uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ul.234.mcz
==================== Summary ====================
Name: KernelTests-ul.234
Author: ul
Time: 16 September 2012, 9:59:01.665 pm
UUID: 7f4e2626-2932-9c42-b20a-fc5494715f73
Ancestors: KernelTests-ul.233
#testPerformCanExecutelongMethodWithTemps and #testPerformInSuperclassCanExecutelongMethodWithTemps from CompiledMethodTest are expected to fail on the interpreter VMs.
=============== Diff against KernelTests-ul.233 ===============
Item was added:
+ ----- Method: CompiledMethodTest>>expectedFailures (in category 'as yet unclassified') -----
+ expectedFailures
+
+ Smalltalk isRunningCog ifTrue: [ ^super expectedFailures ].
+ ^#(
+ "The following two are not supported by the interpreter VM. See their comments for details"
+ testPerformCanExecutelongMethodWithTemps
+ testPerformInSuperclassCanExecutelongMethodWithTemps
+ )!
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.192.mcz
==================== Summary ====================
Name: CollectionsTests-ul.192
Author: ul
Time: 16 September 2012, 9:02:57.208 pm
UUID: a77dd8a7-c0fd-6b41-89ed-6ce22dbc4683
Ancestors: CollectionsTests-fbs.191
- marked RWBinaryOrTextStreamTest >> #testExisting as an expected failure, because it expects a different behavior than the current one
=============== Diff against CollectionsTests-fbs.191 ===============
Item was added:
+ ----- Method: RWBinaryOrTextStreamTest>>expectedFailures (in category 'testing') -----
+ expectedFailures
+
+ ^#(
+ testExisting "This is more like a request for new behavior than a bug."
+ )!
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.192.mcz
==================== Summary ====================
Name: CollectionsTests-ul.192
Author: ul
Time: 16 September 2012, 9:02:57.208 pm
UUID: a77dd8a7-c0fd-6b41-89ed-6ce22dbc4683
Ancestors: CollectionsTests-fbs.191
- marked RWBinaryOrTextStreamTest >> #testExisting as an expected failure, because it expects a different behavior than the current one
=============== Diff against CollectionsTests-fbs.191 ===============
Item was added:
+ ----- Method: RWBinaryOrTextStreamTest>>expectedFailures (in category 'testing') -----
+ expectedFailures
+
+ ^#(
+ testExisting "This is more like a request for new behavior than a bug."
+ )!
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.192.mcz
==================== Summary ====================
Name: CollectionsTests-ul.192
Author: ul
Time: 16 September 2012, 9:02:57.208 pm
UUID: a77dd8a7-c0fd-6b41-89ed-6ce22dbc4683
Ancestors: CollectionsTests-fbs.191
- marked RWBinaryOrTextStreamTest >> #testExisting as an expected failure, because it expects a different behavior than the current one
=============== Diff against CollectionsTests-fbs.191 ===============
Item was added:
+ ----- Method: RWBinaryOrTextStreamTest>>expectedFailures (in category 'testing') -----
+ expectedFailures
+
+ ^#(
+ testExisting "This is more like a request for new behavior than a bug."
+ )!
Levente Uzonyi uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-ul.168.mcz
==================== Summary ====================
Name: Tests-ul.168
Author: ul
Time: 16 September 2012, 9:19:07.194 pm
UUID: eb39bed8-b9dc-e345-a476-9c48f620907b
Ancestors: Tests-ul.167
Removed #expectedFailures from MirrorPrimitiveTests because the new interpreter VM for Windows supports them.
=============== Diff against Tests-ul.167 ===============
Item was removed:
- ----- Method: MirrorPrimitiveTests>>expectedFailures (in category 'testing') -----
- expectedFailures
-
- ^Smalltalk isRunningCog
- ifTrue: [#()]
- ifFalse: [#(testMirrorAt testMirrorEqEq testMirrorInstVarAt testMirrorPerform testMirrorSize)]!
Levente Uzonyi uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-ul.168.mcz
==================== Summary ====================
Name: Tests-ul.168
Author: ul
Time: 16 September 2012, 9:19:07.194 pm
UUID: eb39bed8-b9dc-e345-a476-9c48f620907b
Ancestors: Tests-ul.167
Removed #expectedFailures from MirrorPrimitiveTests because the new interpreter VM for Windows supports them.
=============== Diff against Tests-ul.167 ===============
Item was removed:
- ----- Method: MirrorPrimitiveTests>>expectedFailures (in category 'testing') -----
- expectedFailures
-
- ^Smalltalk isRunningCog
- ifTrue: [#()]
- ifFalse: [#(testMirrorAt testMirrorEqEq testMirrorInstVarAt testMirrorPerform testMirrorSize)]!
Levente Uzonyi uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-ul.168.mcz
==================== Summary ====================
Name: Tests-ul.168
Author: ul
Time: 16 September 2012, 9:19:07.194 pm
UUID: eb39bed8-b9dc-e345-a476-9c48f620907b
Ancestors: Tests-ul.167
Removed #expectedFailures from MirrorPrimitiveTests because the new interpreter VM for Windows supports them.
=============== Diff against Tests-ul.167 ===============
Item was removed:
- ----- Method: MirrorPrimitiveTests>>expectedFailures (in category 'testing') -----
- expectedFailures
-
- ^Smalltalk isRunningCog
- ifTrue: [#()]
- ifFalse: [#(testMirrorAt testMirrorEqEq testMirrorInstVarAt testMirrorPerform testMirrorSize)]!
Levente Uzonyi uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ul.233.mcz
==================== Summary ====================
Name: KernelTests-ul.233
Author: ul
Time: 16 September 2012, 8:17:11.75 pm
UUID: 6a2da463-10c3-7e46-9c87-69204b8d1163
Ancestors: KernelTests-ul.232
Speed-up for CompiledMethodComparisonTest >> #testHash:
- instead of comparing all methods with all other, only compare methods which have the same size and header
- only compare each pair of methods at most once (assuming #= is symmetric)
It now takes less than 30 seconds using the interpreter VM on a 4 years old notebook.
Also added a progress bar and decreased the timeout.
=============== Diff against KernelTests-ul.232 ===============
Item was changed:
----- Method: CompiledMethodComparisonTest>>testHash (in category 'tests') -----
testHash
+ <timeout: 120>
+
- <timeout: 300> "takes 90 seconds in trunk 4.3 on a 2.2GHz Intel Core i7 MacBook Pro"
| ai |
ai := CompiledMethod allInstances.
+ "We assume here that if two CompiledMethods are equal then they have the same size and header."
+ ((ai
+ groupBy: [ :method | { method size. method header } ]
+ having: [ :methods | true ])
+ collect: [ :each | each asArray ])
+ do: [ :methods |
+ 1 to: methods size do: [ :i |
+ i to: methods size do: [ :j |
+ (methods at: i) = (methods at: j) ifTrue: [
+ self assert: (methods at: i) hash equals: (methods at: i) hash ] ] ] ]
+ displayingProgress: 'Testing hashes'.
+ self assert: (ai collect: [ :cm | cm hash ] as: Set) size * 2 >= ai asSet size!
- ai do:
- [:a|
- ai do:
- [:b|
- a = b ifTrue: [self assert: a hash = b hash]]].
- self assert: (ai collect: [:cm| cm hash]) asSet size * 2 >= ai asSet size!
Levente Uzonyi uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ul.233.mcz
==================== Summary ====================
Name: KernelTests-ul.233
Author: ul
Time: 16 September 2012, 8:17:11.75 pm
UUID: 6a2da463-10c3-7e46-9c87-69204b8d1163
Ancestors: KernelTests-ul.232
Speed-up for CompiledMethodComparisonTest >> #testHash:
- instead of comparing all methods with all other, only compare methods which have the same size and header
- only compare each pair of methods at most once (assuming #= is symmetric)
It now takes less than 30 seconds using the interpreter VM on a 4 years old notebook.
Also added a progress bar and decreased the timeout.
=============== Diff against KernelTests-ul.232 ===============
Item was changed:
----- Method: CompiledMethodComparisonTest>>testHash (in category 'tests') -----
testHash
+ <timeout: 120>
+
- <timeout: 300> "takes 90 seconds in trunk 4.3 on a 2.2GHz Intel Core i7 MacBook Pro"
| ai |
ai := CompiledMethod allInstances.
+ "We assume here that if two CompiledMethods are equal then they have the same size and header."
+ ((ai
+ groupBy: [ :method | { method size. method header } ]
+ having: [ :methods | true ])
+ collect: [ :each | each asArray ])
+ do: [ :methods |
+ 1 to: methods size do: [ :i |
+ i to: methods size do: [ :j |
+ (methods at: i) = (methods at: j) ifTrue: [
+ self assert: (methods at: i) hash equals: (methods at: i) hash ] ] ] ]
+ displayingProgress: 'Testing hashes'.
+ self assert: (ai collect: [ :cm | cm hash ] as: Set) size * 2 >= ai asSet size!
- ai do:
- [:a|
- ai do:
- [:b|
- a = b ifTrue: [self assert: a hash = b hash]]].
- self assert: (ai collect: [:cm| cm hash]) asSet size * 2 >= ai asSet size!