<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/kernel/test, branch OTP-17.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 'nox/filelib-wildcard-broken-link' into maint-17</title>
<updated>2014-07-10T08:45:13+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2014-07-10T08:45:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=b376a4b8dd21a943be3226bb696a1622537edf86'/>
<id>b376a4b8dd21a943be3226bb696a1622537edf86</id>
<content type='text'>
* nox/filelib-wildcard-broken-link:
  Update stdlib appup file
  Update runtime dependencies
  Update preloaded
  Add tests of filelib and symlinks
  Fix handling of broken symlinks in filelib

Conflicts:
	erts/preloaded/ebin/erl_prim_loader.beam
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* nox/filelib-wildcard-broken-link:
  Update stdlib appup file
  Update runtime dependencies
  Update preloaded
  Add tests of filelib and symlinks
  Fix handling of broken symlinks in filelib

Conflicts:
	erts/preloaded/ebin/erl_prim_loader.beam
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests of filelib and symlinks</title>
<updated>2014-07-09T12:58:24+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2014-07-07T13:45:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=9dc807376b0dff43a19af5ef4301333f16cc11c1'/>
<id>9dc807376b0dff43a19af5ef4301333f16cc11c1</id>
<content type='text'>
This commit complements 769996c0cd4cb68c157e39de725642f209ed7423 and
adds tests for the following problems introduced by
f11aabdc9fec593c31e6c4f3fa25c1707e9c35df:

Given the symlink 'dirlink' pointing to an existing dir, then
- filelib:is_regular("dirlink") -&gt; false
- filelib:is_dir("dirlink") -&gt; false

Given the symlink 'filelink' pointing to an existing file, then
- filelib:is_regular("filelink") -&gt; false
- filelib:is_file("filelink") -&gt; false
- filelib:last_modified("filelink") and filelib:filesize("filelink")
  return the info of the link and not the file

Given the symlink "broken_symlink" pointing to a non-existing file, then
- filelib:wildcard("broken_symlink",File) -&gt; []
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit complements 769996c0cd4cb68c157e39de725642f209ed7423 and
adds tests for the following problems introduced by
f11aabdc9fec593c31e6c4f3fa25c1707e9c35df:

Given the symlink 'dirlink' pointing to an existing dir, then
- filelib:is_regular("dirlink") -&gt; false
- filelib:is_dir("dirlink") -&gt; false

Given the symlink 'filelink' pointing to an existing file, then
- filelib:is_regular("filelink") -&gt; false
- filelib:is_file("filelink") -&gt; false
- filelib:last_modified("filelink") and filelib:filesize("filelink")
  return the info of the link and not the file

Given the symlink "broken_symlink" pointing to a non-existing file, then
- filelib:wildcard("broken_symlink",File) -&gt; []
</pre>
</div>
</content>
</entry>
<entry>
<title>Make pre-loaded modules permanently sticky</title>
<updated>2014-06-04T14:43:17+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2014-05-09T10:35:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ed06dd12ea74018b902a2c4c7924313d23cedb75'/>
<id>ed06dd12ea74018b902a2c4c7924313d23cedb75</id>
<content type='text'>
Modules in the kernel, stdlib, and compiler applications are by
default "sticky", meaning that the code server will refuse to
re-load them.

The pre-loaded modules (those that are part of the run-time system
itself, such as 'erlang') are, however, not sticky. They used to be
sticky a long time ago when the pre-loaded modules were part of
the kernel application. Now they are part of the erts application.

Since re-loading a pre-loaded module can be catastrophic (especially
re-loading the 'erlang' module), the pre-loaded modules must be
sticky. Furthermore, it should not be allowed to unstick them.

The sticky_dir/1 test case in code_SUITE is never actually run and
is broken. Rewrite it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Modules in the kernel, stdlib, and compiler applications are by
default "sticky", meaning that the code server will refuse to
re-load them.

The pre-loaded modules (those that are part of the run-time system
itself, such as 'erlang') are, however, not sticky. They used to be
sticky a long time ago when the pre-loaded modules were part of
the kernel application. Now they are part of the erts application.

Since re-loading a pre-loaded module can be catastrophic (especially
re-loading the 'erlang' module), the pre-loaded modules must be
sticky. Furthermore, it should not be allowed to unstick them.

The sticky_dir/1 test case in code_SUITE is never actually run and
is broken. Rewrite it.
</pre>
</div>
</content>
</entry>
<entry>
<title>application_SUITE: Clean up the code after the test is done</title>
<updated>2014-05-26T13:54:12+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2014-05-14T10:27:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=32f33d9897261b15573e7e606d990e60e294fc22'/>
<id>32f33d9897261b15573e7e606d990e60e294fc22</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Teach code:del_path/1 to ignore superfluous slashes</title>
<updated>2014-05-26T13:54:12+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2014-05-26T13:15:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=d8fa3de932d97db3a93520ac30f60045e8a9cef4'/>
<id>d8fa3de932d97db3a93520ac30f60045e8a9cef4</id>
<content type='text'>
The following sequence will NOT leave the code path unchanged:

  code:add_path("/some/app/"),
  .
  .
  .
  code:del_path("/some/app/")

The reason is that code:add_path/1 will normalize the path name
(removing the trailing slash), while code:del_path/1 does not
normalize the path before searching for it in the code path.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following sequence will NOT leave the code path unchanged:

  code:add_path("/some/app/"),
  .
  .
  .
  code:del_path("/some/app/")

The reason is that code:add_path/1 will normalize the path name
(removing the trailing slash), while code:del_path/1 does not
normalize the path before searching for it in the code path.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'siri/cuddle-with-tests' into maint</title>
<updated>2014-05-09T08:17:16+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2014-05-09T08:17:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c5979e269c01789546f03660930e3991ee1037b8'/>
<id>c5979e269c01789546f03660930e3991ee1037b8</id>
<content type='text'>
* siri/cuddle-with-tests:
  Fix regexp in release_handler test so versions are correctly replaced
  Update kernel, stdlib and sasl appup tests
  Minor update to test_server for finding old releases
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* siri/cuddle-with-tests:
  Fix regexp in release_handler test so versions are correctly replaced
  Update kernel, stdlib and sasl appup tests
  Minor update to test_server for finding old releases
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'lukas/kernel/fix_sendfile_no_async_tests/OTP-11903' into maint</title>
<updated>2014-05-05T12:40:32+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang-solutions.com</email>
</author>
<published>2014-05-05T12:40:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=abdd3f82100c515508e2c431f8f34dbbc9400d29'/>
<id>abdd3f82100c515508e2c431f8f34dbbc9400d29</id>
<content type='text'>
* lukas/kernel/fix_sendfile_no_async_tests/OTP-11903:
  kernel: Skip sendfile tests that force async threads
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lukas/kernel/fix_sendfile_no_async_tests/OTP-11903:
  kernel: Skip sendfile tests that force async threads
</pre>
</div>
</content>
</entry>
<entry>
<title>Update kernel, stdlib and sasl appup tests</title>
<updated>2014-04-23T12:29:30+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2014-04-22T13:29:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=5e1cfb2f2a296778c400c4afd47571bceb86d4ca'/>
<id>5e1cfb2f2a296778c400c4afd47571bceb86d4ca</id>
<content type='text'>
Add test of update instructions from current major to current
minor. Earlier only previous major to current was tested.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add test of update instructions from current major to current
minor. Earlier only previous major to current was tested.
</pre>
</div>
</content>
</entry>
<entry>
<title>Store expanded config in application_controller:change_application_data</title>
<updated>2014-04-11T15:29:33+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2014-04-11T15:24:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ef6a9b9b7f7a7c829f524d3f51448d3501c36652'/>
<id>ef6a9b9b7f7a7c829f524d3f51448d3501c36652</id>
<content type='text'>
If the Config given to application_controller:change_application_data
included other config files, it was only expanded for already existing
(loaded) applications. If an upgrade added a new application which had
config data in an included config file, the new application did not
get correct config data.

This is now changed so config data will be expanded for all
applications.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the Config given to application_controller:change_application_data
included other config files, it was only expanded for already existing
(loaded) applications. If an upgrade added a new application which had
config data in an included config file, the new application did not
get correct config data.

This is now changed so config data will be expanded for all
applications.
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: Skip sendfile tests that force async threads</title>
<updated>2014-04-10T07:47:52+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang-solutions.com</email>
</author>
<published>2014-04-10T07:47:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=3fa8cba85018d77599a4028dcc300fb08f92d422'/>
<id>3fa8cba85018d77599a4028dcc300fb08f92d422</id>
<content type='text'>
The tests have to be skipped when the emulator running the tests does
not have any async threads.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tests have to be skipped when the emulator running the tests does
not have any async threads.
</pre>
</div>
</content>
</entry>
</feed>
