Skip to content

Commit bc3d230

Browse files
ryanbreenclaude
andcommitted
fix(kthread_stress): align build with boot_stages configuration
- Add external_test_bins to kthread_stress_test feature to match boot_stages build configuration - Update xtask to create test disk before running stress test This ensures the kthread stress test kernel is compiled the same way as the boot stages kernel, which should help with any timing-sensitive issues related to code layout. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 81e9c91 commit bc3d230

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

kernel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test = false
1919
[features]
2020
testing = []
2121
kthread_test_only = ["testing"] # Run only kthread tests and exit
22-
kthread_stress_test = ["testing"] # Run kthread stress test (100+ kthreads) and exit
22+
kthread_stress_test = ["testing", "external_test_bins"] # Run kthread stress test (100+ kthreads) and exit
2323
workqueue_test_only = ["testing"] # Run only workqueue tests and exit
2424
test_divide_by_zero = []
2525
test_invalid_opcode = []

xtask/src/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2888,6 +2888,15 @@ fn kthread_stress() -> Result<()> {
28882888
fn kthread_stress_ci() -> Result<()> {
28892889
println!("=== Kthread Stress Test (CI mode) ===\n");
28902890

2891+
// Build std test binaries BEFORE creating the test disk
2892+
// This ensures hello_std_real is available to be included
2893+
build_std_test_binaries()?;
2894+
2895+
// Create the test disk with all userspace binaries
2896+
// Required since kthread_stress_test now includes external_test_bins
2897+
test_disk::create_test_disk()?;
2898+
println!();
2899+
28912900
// COM1 (user output) and COM2 (kernel logs) - stress test markers go to COM2
28922901
let user_output_file = "target/kthread_stress_user.txt";
28932902
let serial_output_file = "target/kthread_stress_output.txt";

0 commit comments

Comments
 (0)