Skip to content
Draft
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
27 changes: 27 additions & 0 deletions test/run-drun/ok/upgrade-core.drun.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101
debug.print: (0, "0")
debug.print: (1, "1")
debug.print: (2, "2")
debug.print: (3, "3")
debug.print: (4, "4")
debug.print: (5, "5")
debug.print: (6, "6")
debug.print: (7, "7")
debug.print: (8, "8")
debug.print: (9, "9")
ingress Completed: Reply: 0x4449444c0000
ingress Err: IC0503: Error from Canister rwlgt-iiaaa-aaaaa-aaaaa-cai: Canister called `ic0.trap` with message: 'RTS error: Memory-incompatible program upgrade'.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: https://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly
ingress Err: IC0503: Error from Canister rwlgt-iiaaa-aaaaa-aaaaa-cai: Canister called `ic0.trap` with message: 'RTS error: Memory-incompatible program upgrade'.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: https://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly
debug.print: (0, "0")
debug.print: (1, "1")
debug.print: (2, "2")
debug.print: (3, "3")
debug.print: (4, "4")
debug.print: (5, "5")
debug.print: (6, "6")
debug.print: (7, "7")
debug.print: (8, "8")
debug.print: (9, "9")
ingress Completed: Reply: 0x4449444c0000
9 changes: 9 additions & 0 deletions test/run-drun/upgrade-core.drun
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ENHANCED-ORTHOGONAL-PERSISTENCE-ONLY
# SKIP ic-ref-run
install $ID upgrade-core/version0.mo ""
#fails
upgrade $ID upgrade-core/version1.mo ""
#fails
upgrade $ID upgrade-core/version2.mo ""
#works
upgrade $ID upgrade-core/version3.mo ""
Loading
Loading