Disable JIT bpf program tests on non x86 archs (#26654)

This commit is contained in:
Justin Starry 2022-07-17 17:39:40 +02:00 committed by GitHub
parent ca4d917081
commit 0d7d2090a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -230,17 +230,27 @@ fn run_program(name: &str) -> u64 {
)
.unwrap();
#[allow(unused_mut)]
let mut verified_executable = VerifiedExecutable::<
RequisiteVerifier,
BpfError,
ThisInstructionMeter,
>::from_executable(executable)
.unwrap();
verified_executable.jit_compile().unwrap();
let run_program_iterations = {
#[cfg(target_arch = "x86_64")]
{
verified_executable.jit_compile().unwrap();
2
}
#[cfg(not(target_arch = "x86_64"))]
1
};
let mut instruction_count = 0;
let mut tracer = None;
for i in 0..2 {
for i in 0..run_program_iterations {
let transaction_context = &mut invoke_context.transaction_context;
let instruction_context = transaction_context
.get_current_instruction_context()