diff options
author | Rickard Green <[email protected]> | 2018-01-11 15:56:29 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-01-11 15:56:29 +0100 |
commit | 45c0938066e151112f7ac3d961d9300693004b48 (patch) | |
tree | 240dfc2df3e49bd43aab61c4c52df315732d633e /erts/emulator/test/code_SUITE_data/erl_544.erl | |
parent | a5b047d1da2169f55f554e342ab5beca7931c820 (diff) | |
parent | c73337fa1d95f4da5e3c702d0346130f7e0b5aac (diff) | |
download | otp-45c0938066e151112f7ac3d961d9300693004b48.tar.gz otp-45c0938066e151112f7ac3d961d9300693004b48.tar.bz2 otp-45c0938066e151112f7ac3d961d9300693004b48.zip |
Merge branch 'maint'
* maint:
Fix encoding of filenames in stacktraces
Diffstat (limited to 'erts/emulator/test/code_SUITE_data/erl_544.erl')
-rw-r--r-- | erts/emulator/test/code_SUITE_data/erl_544.erl | 35 |
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(). |