Denis Kenzior [Fri, 2 Nov 2012 19:17:17 +0000 (14:17 -0500)]
unit: Move Poll Interval test data 1.1
Denis Kenzior [Fri, 2 Nov 2012 19:04:49 +0000 (14:04 -0500)]
stktest: Label stktest modem as type TEST
Denis Kenzior [Fri, 2 Nov 2012 19:03:16 +0000 (14:03 -0500)]
modem: Add support for modem type TEST
Denis Kenzior [Fri, 2 Nov 2012 19:03:03 +0000 (14:03 -0500)]
doc: Update modem API to reflect modem type test
Denis Kenzior [Fri, 2 Nov 2012 19:02:26 +0000 (14:02 -0500)]
include: Add TEST modem type
Denis Kenzior [Fri, 2 Nov 2012 18:27:13 +0000 (13:27 -0500)]
stktest: Add Play Tone test sequence 6.1
Denis Kenzior [Fri, 2 Nov 2012 18:27:01 +0000 (13:27 -0500)]
unit: Move Play Tone 6.1 test data
Denis Kenzior [Fri, 2 Nov 2012 18:18:42 +0000 (13:18 -0500)]
stktest: Add Play Tone test sequence 5.1
Denis Kenzior [Fri, 2 Nov 2012 18:18:24 +0000 (13:18 -0500)]
unit: Move Play Tone 5.1 test data
Denis Kenzior [Fri, 2 Nov 2012 17:55:33 +0000 (12:55 -0500)]
stktest: Add PlayTone test sequence 4.1-4.10
Denis Kenzior [Fri, 2 Nov 2012 17:55:13 +0000 (12:55 -0500)]
unit: Fixup unit test PlayTone 4.10
Denis Kenzior [Fri, 2 Nov 2012 17:55:00 +0000 (12:55 -0500)]
unit: Move Play Tone 4.1-4.10 test data
Denis Kenzior [Thu, 1 Nov 2012 09:59:08 +0000 (04:59 -0500)]
AUTHORS: Mention Holger's contributions
Holger Hans Peter Freyther [Thu, 1 Nov 2012 09:05:03 +0000 (10:05 +0100)]
wavecom: Add peculiar CPIN as terminator behavior
Holger Hans Peter Freyther [Thu, 1 Nov 2012 09:05:03 +0000 (10:05 +0100)]
sim: Fix the quirk handling of CPIN for Wavecom
The Wavecom Q2XXX support broke in commit
72ce19bf3e87b5e73c053f7ea1.
This is because at_cpin_cb called decode_at_error with final and not
with OK. This lead to an error being set in the error variable and the
new code returns early when an error is set.
The addition of the terminator in at_sim_probe for Wavecom broke in
git commit
ac524be99f8c72a2593e4ffcecad8beea7679e55 because
terminators can not be added on cloned chats.
Move the addition of the terminator from the atmodem to the wavecom
plugin. Use the same terminator for Q2XXX and the normal Wavecom
class. The WAVECOM terminator has been tested on a Q2XXX modem.
Apply the CPIN quirk for both WAVECOM and WAVECOM_Q2XXX inside the
sim.c file. Introduce needs_wavecom_sim_quirk to handle it for
WAVECOM and WAVECOM_Q2XXX.
Luiz Augusto von Dentz [Wed, 3 Oct 2012 11:57:24 +0000 (14:57 +0300)]
gdbus: Fix not freeing list node by using g_slist_delete_link
g_slist_remove_link does not free the node which can cause leaks so
replace that with g_slist_delete_link which does free memory properly.
Lucas De Marchi [Wed, 3 Oct 2012 11:57:23 +0000 (14:57 +0300)]
gdbus: Refactor filter_data_find()
Now this function is only used for searching the listeners of a
connection and the other parameters are not needed anymore.
Lucas De Marchi [Wed, 3 Oct 2012 11:57:22 +0000 (14:57 +0300)]
gdbus: Fix wrong signal handler match
When we add a signal handler with g_dbus_add_signal_watch(), this
function tries to multiplex the matches added in libdbus by checking
if there's a previous filter_data with the same fields. However, if the
field is NULL it accepts as being the same. The result is that the
following watches will use the same filter data:
watch1 = g_dbus_add_signal_watch(conn, BUS_NAME, NULL, iface, member,
cb1, data1, NULL);
watch2 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path2", iface, member,
cb2, data2, NULL);
watch3 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path3", iface, member,
cb3, data3, NULL);
The result is that when a signal arrives with path == "/path2", all 3
callbacks above will be called, with the same signal delivered to all of
them.
Another problem is that, if we invert the calls like below, only signals
to cb1 will never be trigerred, nonetheless it used path == NULL.
watch2 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path2", iface, member,
cb2, data2, NULL);
watch1 = g_dbus_add_signal_watch(conn, BUS_NAME, NULL, iface, member,
cb1, data1, NULL);
watch3 = g_dbus_add_signal_watch(conn, BUS_NAME, "/path3", iface, member,
cb3, data3, NULL);
This is fixed by not multiplexing the matchs with filter data if any of
the fields are different, including being NULL. When a signal arrives,
if a field is NULL we accept it as a match, but not when adding the
signal handler.
Johan Hedberg [Wed, 3 Oct 2012 11:57:21 +0000 (14:57 +0300)]
gdbus: Fix crash when getting disconnected from the bus
When getting disconnected from the bus sometimes (maybe always?)
dbus_watch_handle() can cause the "info" context to be free'd meaning
that we should not try to access it after the call. The only member we
need access to is the connection pointer and as the code already has a
ref() call for it it's only natural to solve the issue by adding a local
variable not dependent on "info".
The backtrace of the crash fixed looks as follows:
Invalid read of size 8
at 0x121085: watch_func (mainloop.c:105)
by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
by 0x120541: main (main.c:551)
Address 0x5bbcd90 is 16 bytes inside a block of size 24 free'd
at 0x4A079AE: free (vg_replace_malloc.c:427)
by 0x4C7837E: g_free (gmem.c:252)
by 0x4F708BF: dbus_watch_set_data (dbus-watch.c:614)
by 0x4F70938: _dbus_watch_unref (dbus-watch.c:132)
by 0x4F6E9A7: _dbus_transport_handle_watch (dbus-transport.c:884)
by 0x4F59AFB: _dbus_connection_handle_watch (dbus-connection.c:1497)
by 0x4F70AF9: dbus_watch_handle (dbus-watch.c:683)
by 0x121084: watch_func (mainloop.c:103)
by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
by 0x120541: main (main.c:551)
Denis Kenzior [Wed, 31 Oct 2012 17:13:12 +0000 (12:13 -0500)]
stktest: Add Play Tone test sequence 3.1-3.4
Denis Kenzior [Wed, 31 Oct 2012 17:13:00 +0000 (12:13 -0500)]
unit: Move Play Tone 3.1-3.4 test data
Denis Kenzior [Wed, 31 Oct 2012 16:55:37 +0000 (11:55 -0500)]
stktest: Add PlayTone test sequence 2.1
Denis Kenzior [Wed, 31 Oct 2012 16:55:24 +0000 (11:55 -0500)]
unit: Move PlayTone 2.1 test data
Denis Kenzior [Wed, 31 Oct 2012 16:50:03 +0000 (11:50 -0500)]
stktest: Use a define for Cyrillic test data
Denis Kenzior [Wed, 31 Oct 2012 16:44:44 +0000 (11:44 -0500)]
stktest: Add Play Tone test sequence 1.1.9-1.1.15
Denis Kenzior [Wed, 31 Oct 2012 13:48:46 +0000 (08:48 -0500)]
stktest: Add PlayTone test sequence 1.1.1-1.1.8
Denis Kenzior [Wed, 31 Oct 2012 13:48:08 +0000 (08:48 -0500)]
unit: Move PlayTone test data for test sequence 1.1
Denis Kenzior [Wed, 31 Oct 2012 13:46:43 +0000 (08:46 -0500)]
stk: Tweak the concept of continuous tones
The spec explicitly mentions continuous or repeatable tones. 02.40 only
mentions the RP-ACK tone as a single tone, all other tones seem to be
repeatable
Denis Kenzior [Wed, 31 Oct 2012 11:46:58 +0000 (06:46 -0500)]
stktest: Add stk_add_timed_test
Denis Kenzior [Tue, 30 Oct 2012 22:42:57 +0000 (17:42 -0500)]
stktest: Add PlayTone and LoopTone methods
Denis Kenzior [Tue, 30 Oct 2012 21:59:42 +0000 (16:59 -0500)]
stktest: Add More Time test sequence 1.1
Denis Kenzior [Tue, 30 Oct 2012 21:59:25 +0000 (16:59 -0500)]
unit: Move More Time test data
Marcel Holtmann [Wed, 31 Oct 2012 16:31:05 +0000 (09:31 -0700)]
doc: Update hardware support information
Marti Raudsepp [Thu, 25 Oct 2012 18:37:30 +0000 (21:37 +0300)]
systemd: prevent duplicate logging messages in journal
By default, both stderr and syslog messages go to the systemd journal,
which results in duplicate messages being logged.
Thanks to Vinicius Costa Gomes for pointing out this problem.
Denis Kenzior [Sun, 21 Oct 2012 02:18:13 +0000 (21:18 -0500)]
stktest: Fix unused variable warnings
Denis Kenzior [Sun, 21 Oct 2012 02:16:33 +0000 (21:16 -0500)]
stktest: Add GetInput test sequence 12.1-12.2
Denis Kenzior [Sun, 21 Oct 2012 02:16:18 +0000 (21:16 -0500)]
unit: Move GetInput test data 12.1-12.2
Denis Kenzior [Sun, 21 Oct 2012 02:08:48 +0000 (21:08 -0500)]
stktest: Add GetInput test sequence 11.1-11.2
Denis Kenzior [Sun, 21 Oct 2012 02:08:17 +0000 (21:08 -0500)]
unit: Move GetInput 11.1-11.2 test data
Denis Kenzior [Sun, 21 Oct 2012 01:58:05 +0000 (20:58 -0500)]
stktest: Add GetInput test sequence 10.1-10.2
Denis Kenzior [Sun, 21 Oct 2012 01:57:53 +0000 (20:57 -0500)]
unit: Move GetInput 10.1-10.2 test data
Denis Kenzior [Sun, 21 Oct 2012 00:50:55 +0000 (19:50 -0500)]
unit: Add GetInput test sequence 9.1-9.2
Denis Kenzior [Sun, 21 Oct 2012 00:50:40 +0000 (19:50 -0500)]
unit: Move GetInput 9.1-9.2 test data
Denis Kenzior [Sun, 21 Oct 2012 00:40:29 +0000 (19:40 -0500)]
stktest: Add GetInput test sequence 8.1-8.10
Denis Kenzior [Sun, 21 Oct 2012 00:39:53 +0000 (19:39 -0500)]
unit: Move GetInput test data 8.1-8.10
Denis Kenzior [Fri, 19 Oct 2012 02:00:55 +0000 (21:00 -0500)]
stktest: Add GetInput test sequence 6.1-6.4
Denis Kenzior [Fri, 19 Oct 2012 02:00:38 +0000 (21:00 -0500)]
unit: Move GetInput 6.1-6.4 test data
Denis Kenzior [Fri, 19 Oct 2012 01:42:52 +0000 (20:42 -0500)]
stktest: Add GetInput test sequence 5.1-5.2
Denis Kenzior [Fri, 19 Oct 2012 01:42:38 +0000 (20:42 -0500)]
unit: Move GetInput 5.1-5.2 test data
Denis Kenzior [Fri, 19 Oct 2012 01:29:09 +0000 (20:29 -0500)]
stktest: Add GetInput test sequence 4.1-4.2
Denis Kenzior [Fri, 19 Oct 2012 01:28:56 +0000 (20:28 -0500)]
unit: Move GetInput 4.1-4.2 test data
Denis Kenzior [Thu, 18 Oct 2012 18:46:07 +0000 (13:46 -0500)]
stktest: Add GetInput test sequence 3.1-3.2
Denis Kenzior [Thu, 18 Oct 2012 18:45:49 +0000 (13:45 -0500)]
unit: Move GetInput 3.1-3.2 test data
Denis Kenzior [Thu, 18 Oct 2012 18:45:35 +0000 (13:45 -0500)]
stktest: Add GetInput test sequence 2.1
Denis Kenzior [Thu, 18 Oct 2012 18:45:03 +0000 (13:45 -0500)]
unit: Move GetInput 2.1 test data
Denis Kenzior [Thu, 18 Oct 2012 18:10:44 +0000 (13:10 -0500)]
stktest: Add GetInput test sequence 1.10
Denis Kenzior [Thu, 18 Oct 2012 18:10:33 +0000 (13:10 -0500)]
unit: Move GetInput test data 1.10
Denis Kenzior [Thu, 18 Oct 2012 18:06:17 +0000 (13:06 -0500)]
stktest: Add GetInput test sequence 1.9
Denis Kenzior [Thu, 18 Oct 2012 18:05:54 +0000 (13:05 -0500)]
unit: Tweak unit test to match test data
Denis Kenzior [Thu, 18 Oct 2012 18:05:40 +0000 (13:05 -0500)]
unit: Move GetInput 1.9 test data
Denis Kenzior [Thu, 18 Oct 2012 17:54:38 +0000 (12:54 -0500)]
stktest: Add GetInput test sequence 1.8
Denis Kenzior [Thu, 18 Oct 2012 17:54:24 +0000 (12:54 -0500)]
unit: Move GetInput 1.8 test data
Denis Kenzior [Thu, 18 Oct 2012 17:46:24 +0000 (12:46 -0500)]
stktest: Add GetInput test sequence 1.7
Denis Kenzior [Thu, 18 Oct 2012 17:46:13 +0000 (12:46 -0500)]
unit: Move GetInput 1.7 test data
Denis Kenzior [Thu, 18 Oct 2012 17:43:22 +0000 (12:43 -0500)]
stktest: Add GetInput test sequence 1.6
Denis Kenzior [Thu, 18 Oct 2012 17:43:10 +0000 (12:43 -0500)]
unit: Move GetInput 1.6 test data
Denis Kenzior [Thu, 18 Oct 2012 17:39:35 +0000 (12:39 -0500)]
stktest: Add GetInput test sequence 1.6
Denis Kenzior [Thu, 18 Oct 2012 17:37:42 +0000 (12:37 -0500)]
unit: Move GetInput 1.5 test data
Denis Kenzior [Thu, 18 Oct 2012 17:33:49 +0000 (12:33 -0500)]
stktest: Add GetInput test sequence 1.4
Denis Kenzior [Thu, 18 Oct 2012 17:30:04 +0000 (12:30 -0500)]
unit: Move GetInput 1.4 test data
Denis Kenzior [Thu, 18 Oct 2012 17:01:14 +0000 (12:01 -0500)]
stktest: Add GetInput test sequence 1.3
Denis Kenzior [Thu, 18 Oct 2012 17:00:58 +0000 (12:00 -0500)]
unit: Move GetInput 1.3 test data
Denis Kenzior [Thu, 18 Oct 2012 16:57:58 +0000 (11:57 -0500)]
stktest: Add GetInput test sequence 1.2
Denis Kenzior [Thu, 18 Oct 2012 16:57:28 +0000 (11:57 -0500)]
unit: Move GetInput 1.2 test data
Denis Kenzior [Thu, 18 Oct 2012 16:53:29 +0000 (11:53 -0500)]
stktest: Add GetInput test sequence 1.1
Denis Kenzior [Thu, 18 Oct 2012 16:53:05 +0000 (11:53 -0500)]
unit: Move GetInput 1.1 test data
Denis Kenzior [Thu, 18 Oct 2012 16:52:45 +0000 (11:52 -0500)]
stktest: Be more explicit with errors
Denis Kenzior [Thu, 18 Oct 2012 16:40:08 +0000 (11:40 -0500)]
stktest: Add RequestInput and RequestDigits
Denis Kenzior [Tue, 16 Oct 2012 15:02:12 +0000 (10:02 -0500)]
udevng: Fix MBM detection
Denis Kenzior [Tue, 9 Oct 2012 20:56:45 +0000 (15:56 -0500)]
stktest: Fix unused variable warnings
Denis Kenzior [Tue, 9 Oct 2012 19:26:22 +0000 (14:26 -0500)]
stktest: Add GetInkey test sequence 13.1
Denis Kenzior [Tue, 9 Oct 2012 19:26:11 +0000 (14:26 -0500)]
unit: Move GetInkey test data 13.1
Denis Kenzior [Tue, 9 Oct 2012 19:23:15 +0000 (14:23 -0500)]
stktest: Add GetInkey test sequence 12.1-12.2
Denis Kenzior [Tue, 9 Oct 2012 19:22:57 +0000 (14:22 -0500)]
unit: Move GetInkey test data 12.1-12.2
Denis Kenzior [Tue, 9 Oct 2012 19:17:24 +0000 (14:17 -0500)]
stktest: Add GetInkey test sequence 11.1
Denis Kenzior [Tue, 9 Oct 2012 19:15:20 +0000 (14:15 -0500)]
unit: Move GetInkey 11.1 test data
Denis Kenzior [Tue, 9 Oct 2012 19:13:12 +0000 (14:13 -0500)]
stktest: Add GetInkey test sequence 10.1-10.2
Denis Kenzior [Tue, 9 Oct 2012 19:12:57 +0000 (14:12 -0500)]
unit: Move GetInkey 10.1-10.2 test data
Denis Kenzior [Tue, 9 Oct 2012 19:05:29 +0000 (14:05 -0500)]
stktest: Add GetInkey test sequence 9.1-9.10
Denis Kenzior [Tue, 9 Oct 2012 18:46:17 +0000 (13:46 -0500)]
unit: Move GetInkey 9.1-9.10 test data
Denis Kenzior [Tue, 9 Oct 2012 17:48:35 +0000 (12:48 -0500)]
stktest: Add Get Inkey test sequence 8.1
Denis Kenzior [Tue, 9 Oct 2012 17:48:17 +0000 (12:48 -0500)]
unit: Tweak stk unit test data
Denis Kenzior [Tue, 9 Oct 2012 17:09:33 +0000 (12:09 -0500)]
unit: Move GetInkey 8.1 test data
Denis Kenzior [Tue, 9 Oct 2012 16:56:19 +0000 (11:56 -0500)]
stktest: Add GetInkey test sequence 6.1-6.4
Denis Kenzior [Tue, 9 Oct 2012 16:56:00 +0000 (11:56 -0500)]
unit: Move GetInkey 6.1-6.4 data
Denis Kenzior [Tue, 9 Oct 2012 16:25:56 +0000 (11:25 -0500)]
stktest: Add GetInkey test sequence 5.1
Denis Kenzior [Tue, 9 Oct 2012 16:17:41 +0000 (11:17 -0500)]
stktest: Add support for RequestConfirmation method
Denis Kenzior [Tue, 9 Oct 2012 16:16:16 +0000 (11:16 -0500)]
unit: Move GetInkey 5.1 test data
Denis Kenzior [Tue, 9 Oct 2012 16:13:20 +0000 (11:13 -0500)]
stktest: Templatize GetInkey related agent methods
Denis Kenzior [Tue, 9 Oct 2012 16:02:04 +0000 (11:02 -0500)]
stktest: Add GetInkey test sequence 4.1