aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-11-20 12:30:45 +0100
committerSiri Hansen <[email protected]>2012-11-20 12:30:45 +0100
commitee65e005b0e18d92d786b14e2dd3cf7b8584ca27 (patch)
tree5d627dc58ad75dcac7ad3958e6a8616d206c1c80 /lib/test_server/test
parenta908160088b654e436bdcdd32369c29603ca5fa7 (diff)
downloadotp-ee65e005b0e18d92d786b14e2dd3cf7b8584ca27.tar.gz
otp-ee65e005b0e18d92d786b14e2dd3cf7b8584ca27.tar.bz2
otp-ee65e005b0e18d92d786b14e2dd3cf7b8584ca27.zip
[test_server] Minimize memory usage in erl2html2:convert/[2,3]
Reading form by form and line by line, instead of reading the complete file in one go.
Diffstat (limited to 'lib/test_server/test')
-rw-r--r--lib/test_server/test/erl2html2_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_server/test/erl2html2_SUITE.erl b/lib/test_server/test/erl2html2_SUITE.erl
index db81c4f059..96175413a1 100644
--- a/lib/test_server/test/erl2html2_SUITE.erl
+++ b/lib/test_server/test/erl2html2_SUITE.erl
@@ -160,7 +160,7 @@ convert_module(Mod,Config) ->
check_line_numbers(Src,Dst) ->
{ok,SFd} = file:open(Src,[read]),
{ok,DFd} = file:open(Dst,[read]),
- {ok,SN} = count_src_lines(SFd,1),
+ {ok,SN} = count_src_lines(SFd,0),
ok = file:close(SFd),
{ok,DN} = read_dst_line_numbers(DFd),
ok = file:close(DFd),