aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 13:28:24 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:22:36 +0200
commite7a3bf9c385ac6df2209c6f7c92543a3dd7f6497 (patch)
tree91975afb8062e901666d59dc1ee0dbb3e60b0fe6 /lib/dialyzer/test
parentf7fd8127c18f25bc9678bda067d1503a0bc0e3b2 (diff)
downloadotp-e7a3bf9c385ac6df2209c6f7c92543a3dd7f6497.tar.gz
otp-e7a3bf9c385ac6df2209c6f7c92543a3dd7f6497.tar.bz2
otp-e7a3bf9c385ac6df2209c6f7c92543a3dd7f6497.zip
Move lib:nonl/1 into yecc.erl
Diffstat (limited to 'lib/dialyzer/test')
-rw-r--r--lib/dialyzer/test/options1_SUITE_data/src/compiler/compile.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/dialyzer/test/options1_SUITE_data/src/compiler/compile.erl b/lib/dialyzer/test/options1_SUITE_data/src/compiler/compile.erl
index 7e5ccde2fd..4e4eb63509 100644
--- a/lib/dialyzer/test/options1_SUITE_data/src/compiler/compile.erl
+++ b/lib/dialyzer/test/options1_SUITE_data/src/compiler/compile.erl
@@ -228,11 +228,15 @@ os_process_size() ->
case os:type() of
{unix, sunos} ->
Size = os:cmd("ps -o vsz -p " ++ os:getpid() ++ " | tail -1"),
- list_to_integer(lib:nonl(Size));
+ list_to_integer(nonl(Size));
_ ->
0
end.
+nonl([10]) -> [];
+nonl([]) -> [];
+nonl([H|T]) -> [H|nonl(T)].
+
run_tc({Name,Fun}, St) ->
Before0 = statistics(runtime),
Val = (catch Fun(St)),