filecoin-project / test-vectors

💎 VM and Chain test vectors for Filecoin implementations
Other
18 stars 27 forks source link

Tests for system exit codes #13

Open alanshaw opened 4 years ago

alanshaw commented 4 years ago

We should test the VM returns the correct system exit codes in certain scenarios. Following is the list of system error codes, scenarios and tests that invoke them. For each exit code we need to define at least one scenario that invokes it and write a corresponding test.

(From https://github.com/filecoin-project/specs-actors/blob/a73a22a48b668c2f5a1cc6a31caef03bcaec5f70/actors/runtime/exitcode/reserved.go#L3-L58)

Note: coverage screenshots above are from the conformance test coverage data, these paths may be exercised in other tests.

alanshaw commented 4 years ago

Good news is that we have at least one test for each exit code. I'm going through the lotus code now and cross referencing with what we have to see if there's scenarios that still need to be tested for.