aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-02-22 15:57:33 +0100
committerSverker Eriksson <[email protected]>2017-02-22 15:57:33 +0100
commit058800faf6b8fa4842aa0f8c3683cab26d399f60 (patch)
tree4dabac8050721615a1f4491298ac99051ed04dcb /erts
parent9c0ab3723c4cfb7f2d9061b661ae6a0331e72c8d (diff)
downloadotp-058800faf6b8fa4842aa0f8c3683cab26d399f60.tar.gz
otp-058800faf6b8fa4842aa0f8c3683cab26d399f60.tar.bz2
otp-058800faf6b8fa4842aa0f8c3683cab26d399f60.zip
Fix nif_SUITE:select for old linux
with pipe capacity equal to PIPE_BUF meaning pipe must be empty to be writable.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/test/nif_SUITE.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/erts/emulator/test/nif_SUITE.erl b/erts/emulator/test/nif_SUITE.erl
index c1d9632fb5..693db42e58 100644
--- a/erts/emulator/test/nif_SUITE.erl
+++ b/erts/emulator/test/nif_SUITE.erl
@@ -500,13 +500,8 @@ select(Config) when is_list(Config) ->
Written = write_full(W, $a),
0 = select_nif(W,?ERL_NIF_SELECT_WRITE,W,self(),Ref),
[] = flush(),
- Half = byte_size(Written) div 2,
- <<First:Half/binary,Second/binary>> = Written,
- First = read_nif(R,Half),
+ Written = read_nif(R,byte_size(Written)),
[{select, W, Ref, ready_output}] = flush(),
- Third = write_full(W, $A),
- Half2 = byte_size(Second),
- <<Second:Half2/binary, Third/binary>> = read_nif(R, byte_size(Written)),
%% Close write and wait for EOF
eagain = read_nif(R, 1),