aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2017-10-24 13:04:11 +0200
committerJohn Högberg <[email protected]>2017-11-30 15:44:37 +0100
commit7c76526c4cae5f5dcc4ccd858f0a33d81c46d5f6 (patch)
tree5aa33fd00d3482546d84058af712310747f096b1 /lib/common_test
parent601c9cd5e9440b78101ef9b73409ad3912f3981e (diff)
downloadotp-7c76526c4cae5f5dcc4ccd858f0a33d81c46d5f6.tar.gz
otp-7c76526c4cae5f5dcc4ccd858f0a33d81c46d5f6.tar.bz2
otp-7c76526c4cae5f5dcc4ccd858f0a33d81c46d5f6.zip
Stop using prim_file directly in test_server
Files opened with the file module are not guaranteed to work with prim_file, even when opened in raw mode.
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/test/test_server_test_lib.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common_test/test/test_server_test_lib.erl b/lib/common_test/test/test_server_test_lib.erl
index e3d987a2ea..9ee946af0b 100644
--- a/lib/common_test/test/test_server_test_lib.erl
+++ b/lib/common_test/test/test_server_test_lib.erl
@@ -121,7 +121,7 @@ parse_suite(FileName) ->
end.
fline(Fd) ->
- case prim_file:read_line(Fd) of
+ case file:read_line(Fd) of
eof -> eof;
{ok, Line} -> Line
end.