mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 02:56:17 -10:00
Give debug wind fixtures an explicit stack budget
This commit is contained in:
1 parent
eab98fdd88
commit
7397241fb6
2 files changed
+12
-1
No files matched your search
@@ -24,5 +24,13 @@ fn main() {
|
||||
} else {
|
||||
Arc::from([Box::new(Protect) as Box<dyn Hooks>])
|
||||
};
|
||||
horizon_client::entry::main_with(mods);
|
||||
// Debug Game construction exceeds the Windows main thread's default stack.
|
||||
// This worker only loads the isolated component fixture; it has no window.
|
||||
std::thread::Builder::new()
|
||||
.name("wind-burst-fixture".into())
|
||||
.stack_size(64 * 1024 * 1024)
|
||||
.spawn(move || horizon_client::entry::main_with(mods))
|
||||
.expect("start wind fixture")
|
||||
.join()
|
||||
.expect("wind fixture panicked");
|
||||
}
|
||||
@@ -52,6 +52,9 @@ def check(binary, resources, timeout=600, evidence=None):
|
||||
for mode in ['no_mod', 'noop', 'protect']:
|
||||
output = work / (mode + '.txt')
|
||||
env = dict(os.environ, HORIZON_DISPENSE_FIXTURE=f'{inputs},{output}')
|
||||
env['RUST_MIN_STACK'] = str(64 * 1024 * 1024)
|
||||
env.setdefault('HORIZON_WORKER_THREADS', '2')
|
||||
env.setdefault('HORIZON_JOB_THREADS', '2')
|
||||
env.pop('HORIZON_WIND_NO_MOD', None)
|
||||
env.pop('HORIZON_WIND_PROTECT', None)
|
||||
if mode == 'no_mod':
|
||||
|
||||
Reference in new issue
Block a user