solana/programs/sbf/c/src
Alessandro Decina 6679153ca1
CPI: improve test coverage (#31986)
* programs/sbf: add TEST_[FORBID|ALLOW]_WRITE_AFTER_OWNERSHIP_CHANGE*

* programs/sbf: add tests for the AccessViolation -> InstructionError mapping

* cpi: add more tests

* programs/sbf: add tests for immutable AccountInfo pointers

* programs/sbf: add tests for verification of SolAccountInfo pointers too

* programs/sbf: add tests for ref_to_len_in_vm handling in CPI

Add TEST_FORBID_LEN_UPDATE_AFTER_OWNERSHIP_CHANGE_MOVING_DATA_POINTER
and TEST_FORBID_LEN_UPDATE_AFTER_OWNERSHIP_CHANGE that exercise the new
logic.

* cpi: tweak tests

Remove some copy pasta and rename two tests to better describe what they're doing

* cpi: add tests that check that CPI updates all accounts at once

* direct mapping: test that writes to executable accounts trigger ExecutableDataModified

* programs/sbf: add explicit tests for when an account's data allocation changes
2023-09-05 14:27:26 +07:00
..
alloc
alt_bn128 Add alt_bn128 syscall tests (and fix related issues) (#31436) 2023-05-22 14:05:10 -07:00
bench_alu
big_mod_exp Big integer modular exponentiation (EIP-198) (#28503) 2023-01-20 18:42:37 +09:00
deprecated_loader
dup_accounts
error_handling
float programs/sbf: c/float: work on stack values (#32192) 2023-06-19 18:04:19 +02:00
invoke CPI: improve test coverage (#31986) 2023-09-05 14:27:26 +07:00
invoked
log_data
move_funds
multiple_static
noop
noop++
panic
poseidon feat(sbf): Add Poseidon syscall (#32680) 2023-08-30 09:43:31 -07:00
read_program Adds test for programs which read from a program account (#30803) 2023-03-21 18:12:19 +01:00
relative_call
return_data
sanity
sanity++
sbf_to_sbf
secp256k1_recover
ser
sha
stdlib
struct_pass
struct_ret
tuner
tuner-variable-iterations