Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable 2019/2021 test cases #7

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 56 additions & 8 deletions script/src/v2_syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,62 @@ impl<
2177 => self.debug(machine),
// The syscall numbers here are picked intentionally to be different
// than currently assigned syscall numbers for spawn calls
2601 => self.spawn(machine),
2602 => self.wait(machine),
2603 => self.process_id(machine),
2604 => self.pipe(machine),
2605 => self.pipe_write(machine),
2606 => self.pipe_read(machine),
2607 => self.inherited_file_descriptors(machine),
2608 => self.close(machine),
2601 => {
if self.script_version >= ScriptVersion::V2 {
self.spawn(machine)
} else {
return Ok(false);
}
}
2602 => {
if self.script_version >= ScriptVersion::V2 {
self.wait(machine)
} else {
return Ok(false);
}
}
2603 => {
if self.script_version >= ScriptVersion::V2 {
self.process_id(machine)
} else {
return Ok(false);
}
}
2604 => {
if self.script_version >= ScriptVersion::V2 {
self.pipe(machine)
} else {
return Ok(false);
}
}
2605 => {
if self.script_version >= ScriptVersion::V2 {
self.pipe_write(machine)
} else {
return Ok(false);
}
}
2606 => {
if self.script_version >= ScriptVersion::V2 {
self.pipe_read(machine)
} else {
return Ok(false);
}
}
2607 => {
if self.script_version >= ScriptVersion::V2 {
self.inherited_file_descriptors(machine)
} else {
return Ok(false);
}
}
2608 => {
if self.script_version >= ScriptVersion::V2 {
self.close(machine)
} else {
return Ok(false);
}
}
_ => return Ok(false),
}?;
Ok(true)
Expand Down
5 changes: 2 additions & 3 deletions script/src/verify/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

pub(crate) mod utils;

// TODO: enable again
// mod ckb_2019;
// mod ckb_2021;
mod ckb_2019;
mod ckb_2021;
#[path = "ckb_latest/mod.rs"]
mod ckb_2023;
Loading