aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/code_SUITE_data
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-12-27 19:17:37 +0100
committerRickard Green <[email protected]>2018-01-11 15:15:56 +0100
commitc3ddb0fc41efcada961920a26f5286f12793614e (patch)
tree3a513f46b75375d66b20edfdb10e7a29ec69c6b1 /erts/emulator/test/code_SUITE_data
parent194513197e19cd592f3f5c2231510542f5193fe4 (diff)
downloadotp-c3ddb0fc41efcada961920a26f5286f12793614e.tar.gz
otp-c3ddb0fc41efcada961920a26f5286f12793614e.tar.bz2
otp-c3ddb0fc41efcada961920a26f5286f12793614e.zip
Fix encoding of filenames in stacktraces
Diffstat (limited to 'erts/emulator/test/code_SUITE_data')
-rw-r--r--erts/emulator/test/code_SUITE_data/erl_544.erl35
1 files changed, 35 insertions, 0 deletions
diff --git a/erts/emulator/test/code_SUITE_data/erl_544.erl b/erts/emulator/test/code_SUITE_data/erl_544.erl
new file mode 100644
index 0000000000..c93f3ef5bc
--- /dev/null
+++ b/erts/emulator/test/code_SUITE_data/erl_544.erl
@@ -0,0 +1,35 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2018. All Rights Reserved.
+%%
+%% Licensed under the Apache License, Version 2.0 (the "License");
+%% you may not use this file except in compliance with the License.
+%% You may obtain a copy of the License at
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+%% See the License for the specific language governing permissions and
+%% limitations under the License.
+%%
+%% %CopyrightEnd%
+%%
+
+-module(erl_544).
+
+-export([err/0, wait/2]).
+
+err() ->
+ erlang:error(err).
+
+wait(Pid, Msg) ->
+ erlang:yield(),
+ Pid ! Msg,
+ receive
+ after infinity ->
+ ok
+ end,
+ err().