test: 8 shutdown tests — EXIT, AtExit, WorkArea, panic-safe, statics
Tests verify: - EXIT PROCEDURE auto-execution on shutdown - Reverse module order for EXIT - AtExit LIFO callback order - WorkArea CloseAll on exit - Panic in cleanup doesn't crash (safeCall) - Shutdown runs exactly once (sync.Once) - Static variables cleared - Full sequence order: EXIT → AtExit → WA:Close → onExit Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "2.0",
|
||||
"lastUpdated": "2026-03-31T01:06:49.182Z",
|
||||
"lastUpdated": "2026-03-31T01:11:37.627Z",
|
||||
"activeFeatures": [
|
||||
"hbrt",
|
||||
"hbrtl",
|
||||
@@ -32,9 +32,9 @@
|
||||
"documents": {},
|
||||
"timestamps": {
|
||||
"started": "2026-03-27T09:33:04.512Z",
|
||||
"lastUpdated": "2026-03-31T01:05:45.128Z"
|
||||
"lastUpdated": "2026-03-31T01:11:37.627Z"
|
||||
},
|
||||
"lastFile": "/mnt/d/charles/five/hbrt/vm.go"
|
||||
"lastFile": "/mnt/d/charles/five/hbrt/shutdown_test.go"
|
||||
},
|
||||
"hbrtl": {
|
||||
"phase": "do",
|
||||
@@ -266,7 +266,7 @@
|
||||
"session": {
|
||||
"startedAt": "2026-03-27T06:06:49.620Z",
|
||||
"onboardingCompleted": false,
|
||||
"lastActivity": "2026-03-31T01:06:49.182Z"
|
||||
"lastActivity": "2026-03-31T01:11:37.627Z"
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
@@ -5326,6 +5326,48 @@
|
||||
"feature": "hbrtl",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-03-31T01:09:06.413Z",
|
||||
"feature": "hbrt",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-03-31T01:09:32.137Z",
|
||||
"feature": "hbrt",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-03-31T01:09:42.530Z",
|
||||
"feature": "hbrt",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-03-31T01:10:44.898Z",
|
||||
"feature": "hbrt",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-03-31T01:10:57.257Z",
|
||||
"feature": "hbrt",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-03-31T01:11:25.249Z",
|
||||
"feature": "hbrt",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
},
|
||||
{
|
||||
"timestamp": "2026-03-31T01:11:37.627Z",
|
||||
"feature": "hbrt",
|
||||
"phase": "do",
|
||||
"action": "updated"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user