// tests that canister_status returns 1 for running canister
tests that canister_status returns 1 for running canister
tests that canister_status returns 1 for running canister
fn sys_api_call_canister_status() {
    with_hypervisor(|hypervisor, tmp_path| {
        assert_eq!(
            execute_update(
                &hypervisor,
                r#"
             (module
              (import "ic0" "canister_status" (func $canister_status (result i32)))
              (func $hi
               (if (i32.ne (call $canister_status) (i32.const 1))
                (then unreachable)
               )
              )
              (memory $memory 1)
              (export "canister_update hi" (func $hi))
             )"#,
                "hi",
                vec![],
                tmp_path,
            )
            .2,
            CallContextAction::NoResponse {
                refund: Cycles::from(0),
            },
        )
    })
}
fn sys_api_call_canister_status ( ) { with_hypervisor ( | hypervisor , tmp_path | { assert_eq ! ( execute_update ( hypervisor r#"
             (module
              (import "ic0" "canister_status" (func $canister_status (result i32)))
              (func $hi
               (if (i32.ne (call $canister_status) (i32.const 1))
                (then unreachable)
               )
              )
              (memory $memory 1)
              (export "canister_update hi" (func $hi))
             )"# " " vec [ ] tmp_path ) 2 CallContextAction NoResponse { refund Cycles from ( 0 ) } ) } ) }
tests that canister_status returns 1 for running canister
tests that canister_status returns 1 for running canister