aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2017-10-24 14:03:46 +0200
committerJohn Högberg <[email protected]>2017-11-30 15:44:34 +0100
commit90a5278f114cffd42dc48235422cc51b10304dab (patch)
treeeed280b3b8c0b0a5c26e443cf2df876fc82d7a66
parent1d0aa9e9d621d4ce654a62a462c9a7f13cddaf65 (diff)
downloadotp-90a5278f114cffd42dc48235422cc51b10304dab.tar.gz
otp-90a5278f114cffd42dc48235422cc51b10304dab.tar.bz2
otp-90a5278f114cffd42dc48235422cc51b10304dab.zip
pread/2 must always return a list of results
-rw-r--r--lib/kernel/test/file_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl
index 1a472af279..fb66bbdb6c 100644
--- a/lib/kernel/test/file_SUITE.erl
+++ b/lib/kernel/test/file_SUITE.erl
@@ -1148,8 +1148,8 @@ pread_write_test(File, Data) ->
end,
I = Size + 17,
ok = ?FILE_MODULE:pwrite(File, 0, Data),
- Res = ?FILE_MODULE:pread(File, 0, I),
- {ok, Data} = Res,
+ {ok, Data} = ?FILE_MODULE:pread(File, 0, I),
+ {ok, [Data]} = ?FILE_MODULE:pread(File, [{0, I}]),
eof = ?FILE_MODULE:pread(File, I, 1),
ok = ?FILE_MODULE:pwrite(File, [{0, Data}, {I, Data}]),
{ok, [Data, eof, Data]} =