Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
areshand committed Nov 22, 2024
1 parent 0f9c1d0 commit 0e6393e
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ task 1 'publish'. lines 4-26:
Error: VMError with status STLOC_UNSAFE_TO_DESTROY_ERROR at location Module ModuleId { address: f75daa73fc071f93593335eb9033da804777eb94491650dd3f095ce6f778acb6, name: Identifier("m") } at index 0 for function definition at code offset 11 in function definition 0

task 2 'run'. lines 28-28:
Error: Failed to execute transaction. ExecutionStatus: MiscellaneousError(None)
Error: Failed to execute transaction. ExecutionStatus: MiscellaneousError(Some(LINKER_ERROR))

task 3 'run'. lines 30-44:
Error: Failed to execute transaction. ExecutionStatus: MiscellaneousError(None)
Error: Failed to execute transaction. ExecutionStatus: MiscellaneousError(Some(STLOC_UNSAFE_TO_DESTROY_ERROR))
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ bug: BYTECODE VERIFICATION FAILED


task 3 'run'. lines 70-70:
Error: Failed to execute transaction. ExecutionStatus: MiscellaneousError(None)
Error: Failed to execute transaction. ExecutionStatus: MiscellaneousError(Some(LINKER_ERROR))
2 changes: 1 addition & 1 deletion aptos-move/e2e-move-tests/src/tests/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ fn failed_transaction_cleanup_charges_gas(status_code: StatusCode) {
assert!(!output.status().is_discarded());
assert_ok_eq!(
output.status().as_kept_status(),
ExecutionStatus::MiscellaneousError(None)
ExecutionStatus::MiscellaneousError(Some(status_code))
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
TYPE_MISMATCH,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
NEGATIVE_STACK_SIZE_WITHIN_BLOCK,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
LINKER_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
LOOKUP_FAILED,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
LINKER_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
LINKER_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
CODE_DESERIALIZATION_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
UNEXPECTED_VERIFIER_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
UNEXPECTED_VERIFIER_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
UNEXPECTED_VERIFIER_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Ok(
gas_used: 3,
status: Keep(
MiscellaneousError(
None,
Some(
UNEXPECTED_VERIFIER_ERROR,
),
),
),
auxiliary_data: V1(
Expand Down

0 comments on commit 0e6393e

Please sign in to comment.