Marcel Taeumel uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-mt.380.mcz
==================== Summary ====================
Name: KernelTests-mt.380
Author: mt
Time: 30 April 2020, 12:22:16.766652 pm
UUID: c45fab34-ced0-9340-9f23-8f6af2c21f88
Ancestors: KernelTests-mt.379
Split up memory allocation tests.
=============== Diff against KernelTests-mt.379 ===============
Item was changed:
----- Method: AllocationTest>>testOutOfMemorySignal (in category 'tests') -----
testOutOfMemorySignal
+ "Ensure that OutOfMemory is signaled eventually. Restrain the available memory first to not stress the machine too much."
+
- "Ensure that OutOfMemory is signaled eventually"
| sz |
self setFreeSpaceLimitOf: 1024 * 1024 * 1024 * (Smalltalk wordSize = 8
ifTrue: [4]
ifFalse: [1.5])
around:
[sz := 512*1024*1024. "work around the 1GB alloc bug"
+ self should: [(1 to: 2000) collect: [:i| Array new: sz]] raise: OutOfMemory].!
- self should: [(1 to: 2000) collect: [:i| Array new: sz]] raise: OutOfMemory].
-
- "Call me when this test fails, I want your machine."
- "Current (2017) Spur VMs fail new: & basicNew: with #'bad argument' if given other than a non-negative SmallInteger."
- sz := 1024*1024*1024*1024.
- self should: [Array new: sz]
- raise: OutOfMemory, Error
- withExceptionDo:
- [:ex|
- ex class == Error ifTrue:
- [self assert: [ex messageText includesSubstring: 'basicNew: with invalid argument']]]!
Item was added:
+ ----- Method: AllocationTest>>testOutOfMemorySignalExtreme (in category 'tests') -----
+ testOutOfMemorySignalExtreme
+ "Try to allocate a ridiculous amount of memory and check whether the expected error is signaled. Call Eliot when this test fails, he want your machine. :-)
+
+ Note that current (2017) Spur VMs fail in #new: and #basicNew: with #'bad argument' if given other than a non-negative SmallInteger.
+
+ Also note that this test can be quite stressful to your machine depending on how your operating system allocates the required memory behind the curtains. Better not triggering some robot fetching a tape from somewhere..."
+
+ | sz |
+ sz := 1024*1024*1024*1024. "= 1 TiB"
+ self should: [Array new: sz]
+ raise: OutOfMemory, Error
+ withExceptionDo:
+ [:ex|
+ ex class == Error ifTrue:
+ [self assert: [ex messageText includesSubstring: 'basicNew: with invalid argument']]]!
Nicolas Cellier uploaded a new version of Help-Squeak-Project to project The Trunk:
http://source.squeak.org/trunk/Help-Squeak-Project-nice.80.mcz
==================== Summary ====================
Name: Help-Squeak-Project-nice.80
Author: nice
Time: 29 April 2020, 10:36:37.48125 pm
UUID: e5ced11f-73d5-1d4f-a9ac-5af520cc1abe
Ancestors: Help-Squeak-Project-mt.79
Let Help survive to Inspector refactorings.
=============== Diff against Help-Squeak-Project-mt.79 ===============
Item was changed:
----- Method: SqueakMessageCategoriesHelp>>menu (in category 'menu') -----
menu
"This category includes all methods related to menus, often context menus in particular. It contains methods defining the menu as well as often callbacks for the labels of menu items or the actions to be executed. Sometimes the menus are split up in different categories if there are multiple menus or submenus."
+ ^ {Inspector>>#mainFieldListMenu: . SystemWindow>>#makeClosable}!
- ^ {DictionaryInspector>>#mainFieldListMenu: . SystemWindow>>#makeClosable}!
Marcel Taeumel uploaded a new version of PreferenceBrowser to project The Trunk:
http://source.squeak.org/trunk/PreferenceBrowser-mt.103.mcz
==================== Summary ====================
Name: PreferenceBrowser-mt.103
Author: mt
Time: 29 April 2020, 8:45:37.770261 pm
UUID: b939aeb0-0229-c14b-94fe-2fd07189ecb8
Ancestors: PreferenceBrowser-mt.102
Fixes a bug with some redundant tooltip ... because that quick-and-dirty way to find existing preferences did not work out.
Note that the preference wizard can provide its own namespace for preferences with custom state/getter and setter messages. Luckily, much of the wizard's selection matches something from the system-wide Preferences.
Look at the wizard as something that provides a nice first contact to set up important stuff in the environment. That "stuff" is not necessarily present in Preferences but maybe also in some specific class such as for pragma preferences. So the wizard acts as a GoF Facade.
=============== Diff against PreferenceBrowser-mt.102 ===============
Item was changed:
----- Method: PreferenceWizardMorph>>initializePage04InteractionMore (in category 'initialization - pages') -----
initializePage04InteractionMore
| currentPage pane |
currentPage := pages add: self createPage.
pane := self createScrollPane.
currentPage addMorphBack: (self createLabel: 'Choose more interaction settings' color: Color white).
currentPage addMorphBack: pane.
pane scroller firstSubmorph addAllMorphsBack: {
self createCheckbox: 'Windows raise on click' translated for: #WindowsRaiseOnClick help: #(window raise).
self createCheckbox: 'Windows always active' for: #WindowsAlwaysActive help: #(window content active).
self createCheckbox: 'Window buttons always active' translated for: #WindowButtonsAlwaysActive help: #(window control active).
self createVerticalSpace.
self createCheckbox: 'Smart horizontal splitters' translated for: #SmartHorizontalSplitters help: #(horizontal splitter).
self createCheckbox: 'Smart vertical splitters' translated for: #SmartVerticalSplitters help: #(vertical splitter).
self createVerticalSpace.
+ self createCheckbox: 'Filterable lists and trees' translated for: #FilterableLists help: 'Type something to filter lists. Press [return] to clear the filter. Press [backspace] to clear and restore prior selection.' translated.
- self createCheckbox: 'Filterable lists and trees' translated for: #FilterableLists help: #(filterable).
self createCheckbox: 'Filters clear if unfocused' translated for: #ClearFilterAutomatically help: #(filter clear).
self createVerticalSpace.
self createCheckbox: 'Attach tools to mouse' translated for: #AttachToolsToMouse help: #(tools attach).
}.!