Skip to content

Commit

Permalink
Disables related tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Feb 6, 2024
1 parent 2dace5a commit 5001e7e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions programs/bpf_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,6 @@ mod tests {
},
account_utils::StateMut,
clock::Clock,
feature_set::FeatureSet,
instruction::{AccountMeta, InstructionError},
pubkey::Pubkey,
rent::Rent,
Expand Down Expand Up @@ -1816,9 +1815,6 @@ mod tests {
expected_result,
Entrypoint::vm,
|invoke_context| {
let mut features = FeatureSet::all_enabled();
features.deactivate(&disable_bpf_loader_instructions::id());
invoke_context.feature_set = Arc::new(features);
test_utils::load_all_invoked_programs(invoke_context);
},
|_invoke_context| {},
Expand All @@ -1837,6 +1833,7 @@ mod tests {
program_account
}

#[ignore]
#[test]
fn test_bpf_loader_write() {
let loader_id = bpf_loader::id();
Expand Down Expand Up @@ -1904,6 +1901,7 @@ mod tests {
);
}

#[ignore]
#[test]
fn test_bpf_loader_finalize() {
let loader_id = bpf_loader::id();
Expand Down Expand Up @@ -1968,6 +1966,7 @@ mod tests {
);
}

#[ignore]
#[test]
fn test_bpf_loader_invoke_main() {
let loader_id = bpf_loader::id();
Expand Down Expand Up @@ -2038,9 +2037,6 @@ mod tests {
Err(InstructionError::ProgramFailedToComplete),
Entrypoint::vm,
|invoke_context| {
let mut features = FeatureSet::all_enabled();
features.deactivate(&disable_bpf_loader_instructions::id());
invoke_context.feature_set = Arc::new(features);
invoke_context.mock_set_remaining(0);
test_utils::load_all_invoked_programs(invoke_context);
},
Expand Down Expand Up @@ -2586,11 +2582,7 @@ mod tests {
instruction_accounts,
expected_result,
Entrypoint::vm,
|invoke_context| {
let mut features = FeatureSet::all_enabled();
features.deactivate(&disable_bpf_loader_instructions::id());
invoke_context.feature_set = Arc::new(features);
},
|_invoke_context| {},
|_invoke_context| {},
)
}
Expand Down

0 comments on commit 5001e7e

Please sign in to comment.