<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/megaco/test, branch maint</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>[megaco|test] Add an event list to the test MGC/MG</title>
<updated>2019-07-31T09:53:48+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-31T09:53:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=369718a77d4bd14dc92e3613e896cfcc10802f7b'/>
<id>369718a77d4bd14dc92e3613e896cfcc10802f7b</id>
<content type='text'>
To provide more info when analyzing failed test cases
an "event" queue (of max size 10) is added to both the
test MG and MGC. This event queue is printed when the
process exist.
Also, the multi_ack_timeout is wonky, so add anther
platform (sunos) to the skip list...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To provide more info when analyzing failed test cases
an "event" queue (of max size 10) is added to both the
test MG and MGC. This event queue is printed when the
process exist.
Also, the multi_ack_timeout is wonky, so add anther
platform (sunos) to the skip list...
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] Fix copyright end date</title>
<updated>2019-07-30T12:17:45+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-30T12:17:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=7c4bd2f442c48807d448f665da0036da4742bc83'/>
<id>7c4bd2f442c48807d448f665da0036da4742bc83</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] More timing issues</title>
<updated>2019-07-29T11:12:01+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-29T11:12:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=bc9e6c80696dfcf91c78f3a4e43c4ab96f645c51'/>
<id>bc9e6c80696dfcf91c78f3a4e43c4ab96f645c51</id>
<content type='text'>
Adjusted some timeouts...
Also, add time stamp to the 'delivery' printouts.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adjusted some timeouts...
Also, add time stamp to the 'delivery' printouts.
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] Fixed timer 'start and stop' test case</title>
<updated>2019-07-25T17:10:51+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-25T17:08:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=52eea8c9ede181cadb248321182b37f75f10c66d'/>
<id>52eea8c9ede181cadb248321182b37f75f10c66d</id>
<content type='text'>
When cancel'ing a timer, the ok return is either:

     ok

or

	{ok, Remaining}

The test case did not handle this (expected 'ok').
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When cancel'ing a timer, the ok return is either:

     ok

or

	{ok, Remaining}

The test case did not handle this (expected 'ok').
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] Improve skip'ing of codec cases</title>
<updated>2019-07-25T17:10:51+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-25T17:07:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6e31e344a540e5b65c5ad96e5dcbb754ec8c818b'/>
<id>6e31e344a540e5b65c5ad96e5dcbb754ec8c818b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] Attempt to catch and handle skip'able TCP cases</title>
<updated>2019-07-25T17:10:29+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-25T14:09:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=d61dcd7708c7e33c6c650b1293119157b269a37a'/>
<id>d61dcd7708c7e33c6c650b1293119157b269a37a</id>
<content type='text'>
When waiting for the server command handler to start
listening, wait only for so long (5 seconds) and if
it has not managed to start listening before then,
we *skip* (because something is wrong with the *system*).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When waiting for the server command handler to start
listening, wait only for so long (5 seconds) and if
it has not managed to start listening before then,
we *skip* (because something is wrong with the *system*).
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] General improvement to "skip handling"</title>
<updated>2019-07-25T14:07:18+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-25T14:07:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=f51d3b9ff7c7d92557d17f8da86f413bf30a094d'/>
<id>f51d3b9ff7c7d92557d17f8da86f413bf30a094d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] Message in "wrong" order cause test case fail</title>
<updated>2019-07-22T12:54:53+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-22T12:54:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=056e3dfa2837f52e7e2d074d5cc11543a7656cde'/>
<id>056e3dfa2837f52e7e2d074d5cc11543a7656cde</id>
<content type='text'>
It looked like two messages was received in the "wrong" order,
cuasing the request_and_reply_plain test case tro fail (on
a windows machine).
On closer inspection, the reason was that an "unconditional"
receive was made when waiting for a (disconnect) callback.
But instead we received a secondary message. So, remove
the unconditional receive and instead introduce a timeout
(10 seconds).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It looked like two messages was received in the "wrong" order,
cuasing the request_and_reply_plain test case tro fail (on
a windows machine).
On closer inspection, the reason was that an "unconditional"
receive was made when waiting for a (disconnect) callback.
But instead we received a secondary message. So, remove
the unconditional receive and instead introduce a timeout
(10 seconds).
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] Failure to start config should result in skip</title>
<updated>2019-07-22T12:49:00+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-22T12:49:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=9295544658711636e21fd11e41d3d23169248c7d'/>
<id>9295544658711636e21fd11e41d3d23169248c7d</id>
<content type='text'>
It seems that the megaco_config process did not start (for
an unknown reason) and that resulted in a failed test case.
But starting the config process was not what the test case
was for, so it should have resulted in a skip.
Also, since we did not check the result of the config start,
we don't know why it failed.
So, move the start and stop of the megaco_config process
to the [init|end]_per_testcase function(s). If we fail to
start, then we skip (with a useful reason).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It seems that the megaco_config process did not start (for
an unknown reason) and that resulted in a failed test case.
But starting the config process was not what the test case
was for, so it should have resulted in a skip.
Also, since we did not check the result of the config start,
we don't know why it failed.
So, move the start and stop of the megaco_config process
to the [init|end]_per_testcase function(s). If we fail to
start, then we skip (with a useful reason).
</pre>
</div>
</content>
</entry>
<entry>
<title>[megaco|test] Improve handling of skip</title>
<updated>2019-07-18T17:07:45+00:00</updated>
<author>
<name>Micael Karlberg</name>
<email>bmk@erlang.org</email>
</author>
<published>2019-07-18T17:07:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=cfb78031058227e44c666f7ae1afdb035cf6b1cb'/>
<id>cfb78031058227e44c666f7ae1afdb035cf6b1cb</id>
<content type='text'>
The load test suite did not properly handle attempts to
skip test cases. If we failed to start one of the slave
nodes for whatever reason (in this case we got a timeout),
this should not result in a failed test case as this is
out of the control of the test case. As it was, we *did*
try to issue a skip, but the "load controller" did not
detect it. It instead transformed it into a regular error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The load test suite did not properly handle attempts to
skip test cases. If we failed to start one of the slave
nodes for whatever reason (in this case we got a timeout),
this should not result in a failed test case as this is
out of the control of the test case. As it was, we *did*
try to issue a skip, but the "load controller" did not
detect it. It instead transformed it into a regular error.
</pre>
</div>
</content>
</entry>
</feed>
