<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/stdlib/test, branch OTP-18.2</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Merge branch 'bjorn/stdlib/rand-export_seed/OTP-13162' into maint</title>
<updated>2015-12-07T10:40:38+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-12-07T10:40:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=2b73b1cee4571227bd56e6b661daa6907396ce77'/>
<id>2b73b1cee4571227bd56e6b661daa6907396ce77</id>
<content type='text'>
* bjorn/stdlib/rand-export_seed/OTP-13162:
  Correct rand:export_seed/0 when there is no prior seed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bjorn/stdlib/rand-export_seed/OTP-13162:
  Correct rand:export_seed/0 when there is no prior seed
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct rand:export_seed/0 when there is no prior seed</title>
<updated>2015-12-07T10:40:24+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-12-04T13:34:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=807f0c8904be14c9088ebc41ade885ffac142b34'/>
<id>807f0c8904be14c9088ebc41ade885ffac142b34</id>
<content type='text'>
According to the documentation, rand:export_seed/0 should return
'undefined' if the seed has not been intialized. However, it will
create and return a seed. That means that the following code
will not work as expected:

  case rand:export_seed() of
     undefined -&gt; rand:seen({1,2,3});
     _ -&gt; ok
  end,
  rand:uniform(Range)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to the documentation, rand:export_seed/0 should return
'undefined' if the seed has not been intialized. However, it will
create and return a seed. That means that the following code
will not work as expected:

  case rand:export_seed() of
     undefined -&gt; rand:seen({1,2,3});
     _ -&gt; ok
  end,
  rand:uniform(Range)
</pre>
</div>
</content>
</entry>
<entry>
<title>stdlib: Correct pretty-printing of map types</title>
<updated>2015-12-07T08:41:25+00:00</updated>
<author>
<name>Hans Bolinder</name>
<email>hasse@erlang.org</email>
</author>
<published>2015-11-17T13:09:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=b8a5a201389c117aaa8ddfa387dcb11fb6f5ae4a'/>
<id>b8a5a201389c117aaa8ddfa387dcb11fb6f5ae4a</id>
<content type='text'>
Add parentheses around annotated type union elements in map pair
types. The bug was introduced in Erlang/OTP 18.0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add parentheses around annotated type union elements in map pair
types. The bug was introduced in Erlang/OTP 18.0.
</pre>
</div>
</content>
</entry>
<entry>
<title>Extend erl_lint:format_error/1 to handle bittype mismatches</title>
<updated>2015-12-03T12:14:45+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-12-03T11:53:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=b7514ce549fc8865a2200c44fc686d46ed3d9291'/>
<id>b7514ce549fc8865a2200c44fc686d46ed3d9291</id>
<content type='text'>
erl_lint:format_error/1 would crash with a function error if
conflicting types were given. That was most easily noticed in the
shell:

  Eshell V7.0.3  (abort with ^G)
  1&gt; &lt;&lt;0/integer-binary&gt;&gt;.
  *** ERROR: Shell process terminated! ***

Noticed-by: Aleksei Magusev
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
erl_lint:format_error/1 would crash with a function error if
conflicting types were given. That was most easily noticed in the
shell:

  Eshell V7.0.3  (abort with ^G)
  1&gt; &lt;&lt;0/integer-binary&gt;&gt;.
  *** ERROR: Shell process terminated! ***

Noticed-by: Aleksei Magusev
</pre>
</div>
</content>
</entry>
<entry>
<title>erl_lint_SUITE: Add smoke test of format_error/1</title>
<updated>2015-12-03T12:05:22+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-12-03T11:28:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=78b3b26ece408ca90e3e78873e9a0212777973fe'/>
<id>78b3b26ece408ca90e3e78873e9a0212777973fe</id>
<content type='text'>
The test suite depended on the compiler to call
erl_lint:format_error/1 to ensure that format_error/1 was
covered. Unfortunately, though, if format_error/1 crashed
the compiler would catch the exception so that the test suite
would not notice it.

Add a smoke test of format_error/1 that will crash if there is
any problem with erl_lint:format_error/1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test suite depended on the compiler to call
erl_lint:format_error/1 to ensure that format_error/1 was
covered. Unfortunately, though, if format_error/1 crashed
the compiler would catch the exception so that the test suite
would not notice it.

Add a smoke test of format_error/1 that will crash if there is
any problem with erl_lint:format_error/1.
</pre>
</div>
</content>
</entry>
<entry>
<title>stdlib: Fix leaking files after error_logger:logfile(close)</title>
<updated>2015-09-17T07:40:04+00:00</updated>
<author>
<name>Dan Gudmundsson</name>
<email>dgud@erlang.org</email>
</author>
<published>2015-09-17T07:40:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ad7bb40d88acd0de5bdad9b64f8d8dd5c303fa48'/>
<id>ad7bb40d88acd0de5bdad9b64f8d8dd5c303fa48</id>
<content type='text'>
Introduced when changing state from tuple to record.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduced when changing state from tuple to record.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'bjorn/cuddle-with-tests' into maint</title>
<updated>2015-09-14T13:19:17+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-09-14T13:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=7e0e50bafef2b0855eba3f0111e6e141025ebf13'/>
<id>7e0e50bafef2b0855eba3f0111e6e141025ebf13</id>
<content type='text'>
* bjorn/cuddle-with-tests: (23 commits)
  rand_SUITE: Speed up basic_stats/1
  base64_SUITE: Speed up roundtrip/1
  lists_SUITE: Test lists:concat/2
  lists_SUITE: Test lists:split/2
  lists_SUITE: Add a test case for lists:prefix/2
  lists_SUITE: Add hof/1 to test all high-order functions
  lists_SUITE: Add test for lists:takewhile/1
  lists_SUITE: Run test cases in each group in parallel
  lists_SUITE: Test lists:keyreplace/4
  lists_SUITE: Extend flatten/1 test to also test flatlength/1
  lists_SUITE: Correct test of lists:flatten/2
  id_transform_SUITE: Modernize test suite
  io_proto_SUITE: Speed up determination of default shell
  io_proto_SUITE: Refactor up rtnode() and friends
  gen_event_SUITE: Remove unnecessary sleep calls
  proc_lib: Improve coverage for crash/1
  proc_lib_SUITE: Eliminate compiler warnings
  io_SUITE: Add coverage/1 to completely cover io_lib_pretty
  io_SUITE: Extend coverage of code for testing printable chars
  io_SUITE: Speed up test for bad +pc option
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bjorn/cuddle-with-tests: (23 commits)
  rand_SUITE: Speed up basic_stats/1
  base64_SUITE: Speed up roundtrip/1
  lists_SUITE: Test lists:concat/2
  lists_SUITE: Test lists:split/2
  lists_SUITE: Add a test case for lists:prefix/2
  lists_SUITE: Add hof/1 to test all high-order functions
  lists_SUITE: Add test for lists:takewhile/1
  lists_SUITE: Run test cases in each group in parallel
  lists_SUITE: Test lists:keyreplace/4
  lists_SUITE: Extend flatten/1 test to also test flatlength/1
  lists_SUITE: Correct test of lists:flatten/2
  id_transform_SUITE: Modernize test suite
  io_proto_SUITE: Speed up determination of default shell
  io_proto_SUITE: Refactor up rtnode() and friends
  gen_event_SUITE: Remove unnecessary sleep calls
  proc_lib: Improve coverage for crash/1
  proc_lib_SUITE: Eliminate compiler warnings
  io_SUITE: Add coverage/1 to completely cover io_lib_pretty
  io_SUITE: Extend coverage of code for testing printable chars
  io_SUITE: Speed up test for bad +pc option
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>rand_SUITE: Speed up basic_stats/1</title>
<updated>2015-09-11T10:24:38+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-09-08T13:26:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=d9117a4ae9e35bd1917272460d0e8a52133046d1'/>
<id>d9117a4ae9e35bd1917272460d0e8a52133046d1</id>
<content type='text'>
Refactor basic_stats/1 into three separate test cases that can be
run in parallel.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactor basic_stats/1 into three separate test cases that can be
run in parallel.
</pre>
</div>
</content>
</entry>
<entry>
<title>base64_SUITE: Speed up roundtrip/1</title>
<updated>2015-09-11T10:24:37+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-09-08T13:11:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=78eb4a1ff9cafe394e338abb7297a1199c5eba85'/>
<id>78eb4a1ff9cafe394e338abb7297a1199c5eba85</id>
<content type='text'>
Refactor roundtrip/1 into 4 test cases that can be run in parallel.
Assuming that there are 4 cores available, the group of 4 test
cases will run at roughly one fourth of the time for the original
test case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactor roundtrip/1 into 4 test cases that can be run in parallel.
Assuming that there are 4 cores available, the group of 4 test
cases will run at roughly one fourth of the time for the original
test case.
</pre>
</div>
</content>
</entry>
<entry>
<title>lists_SUITE: Test lists:concat/2</title>
<updated>2015-09-11T10:24:37+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2015-09-08T12:21:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c54430d8d47993ccc10651d2049961b4ab122a90'/>
<id>c54430d8d47993ccc10651d2049961b4ab122a90</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
