diff options
author | John Högberg <[email protected]> | 2017-10-24 13:04:11 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2017-11-30 15:44:37 +0100 |
commit | 7c76526c4cae5f5dcc4ccd858f0a33d81c46d5f6 (patch) | |
tree | 5aa33fd00d3482546d84058af712310747f096b1 | |
parent | 601c9cd5e9440b78101ef9b73409ad3912f3981e (diff) | |
download | otp-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.
-rw-r--r-- | lib/common_test/test/test_server_test_lib.erl | 2 |
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. |