mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-11 01:53:23 +01:00
16 lines
337 B
Rust
16 lines
337 B
Rust
use lightproc::proc_stack::ProcStack;
|
|
use lightproc::proc_state::EmptyProcState;
|
|
|
|
#[test]
|
|
fn stack_copy() {
|
|
let stack = ProcStack::default()
|
|
.with_pid(12)
|
|
.with_after_panic(|_s: &mut EmptyProcState| {
|
|
println!("After panic!");
|
|
});
|
|
|
|
let stack2 = stack;
|
|
|
|
assert_eq!(stack2.get_pid(), 12);
|
|
}
|