mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
script::folder::list and script::startup::list measured the 250 ms listing limit (MAX_SCAN) with a real Instant. script.listInstalled, script.startup.run and the File > Scripts menu read the folders through them, so a test that went through any of these got a truncated listing and missing scripts whenever the disk stalled for 250 ms. - folder::Clock is either Wall (the real time since the listing started, the default) or Fixed (the same time at every check). Both list functions take one. - Session::set_script_listing_clock sets the clock the two commands and the menu's listing job use; the app keeps the real clock. - The script folder, startup script, scripts menu, script run and Safe Mode tests list with a fixed zero time, so a slow disk cannot cut a listing short. Direct listing calls use the test file's list helper. - New tests check that script.listInstalled, script.startup.run and the menu stop at the session's clock once it is past the limit and list everything at the limit.