Skip to content

Fixes SHOULD_NOT_SLEEP() missing situations where sleep is in fact called#472

Open
CabinetOnFire wants to merge 4 commits into
SpaceManiac:masterfrom
CabinetOnFire:sleep
Open

Fixes SHOULD_NOT_SLEEP() missing situations where sleep is in fact called#472
CabinetOnFire wants to merge 4 commits into
SpaceManiac:masterfrom
CabinetOnFire:sleep

Conversation

@CabinetOnFire

Copy link
Copy Markdown

Based on #356 and finished with some additional tweaks that I noticed while fixing issues I had on /tg/ locally

Fixes #355

Some additional changes on top of that PRs original changes:

  • since /obj, /mob and /turf are not path-descendant from atom they could be missed in some specific cases. Added a new test for that (sleep10) and fixed it via redirected_parent_types. This was also the issue I was running into on /tg/
  • Fixes false positives that triggered on Cyberboss version. We now bound the override lookup to the static receiver type.

The rest is similar, the override tracking system is gone and we now walk the call tree instead. Kept the test case from Cyberboss too (test9)

Also kept the split up test files and improved test helpers.

@Cyberboss Cyberboss mentioned this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missed sleep with SHOULD_NOT_SLEEP

1 participant