diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-09-25 18:20:10 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-11-17 16:07:56 +0100 |
commit | 7f215c6db8caf0760161437e9d1c3c0a06cf5841 (patch) | |
tree | eccfbf67b4f59391899257592f1ca56f894e4b6a /erts/emulator/test/code_SUITE_data | |
parent | 0d5ee7a4ad7bc41b7cca878990926fb5ba57f6a2 (diff) | |
download | otp-7f215c6db8caf0760161437e9d1c3c0a06cf5841.tar.gz otp-7f215c6db8caf0760161437e9d1c3c0a06cf5841.tar.bz2 otp-7f215c6db8caf0760161437e9d1c3c0a06cf5841.zip |
Add copy_literals testcase
Repeatedly reload a literals module while sending
the references literals around in a process ring.
This will smoke test the non-copying literals message sending does
not corrupt code unloading.
Diffstat (limited to 'erts/emulator/test/code_SUITE_data')
-rw-r--r-- | erts/emulator/test/code_SUITE_data/literals.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/emulator/test/code_SUITE_data/literals.erl b/erts/emulator/test/code_SUITE_data/literals.erl index 9802d9d3f9..a36bfe09dd 100644 --- a/erts/emulator/test/code_SUITE_data/literals.erl +++ b/erts/emulator/test/code_SUITE_data/literals.erl @@ -20,6 +20,7 @@ -module(literals). -export([a/0,b/0,huge_bignum/0,binary/0,unused_binaries/0,bits/0]). +-export([msg1/0,msg2/0,msg3/0,msg4/0,msg5/0]). a() -> {a,42.0,[7,38877938333399637266518333334747]}. @@ -101,3 +102,9 @@ unused_binaries() -> bits() -> {bits,<<42:13,?MB_1>>}. + +msg1() -> "halloj". +msg2() -> {"hello","world"}. +msg3() -> <<"halloj">>. +msg4() -> #{ 1=> "hello", b => "world"}. +msg5() -> {1,2,3,4,5,6}. |