summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-11-26 19:56:32 (GMT)
committerDan Williams <dcbw@redhat.com>2012-11-27 15:56:25 (GMT)
commit3e39144100315c5be83396d5ef2433be4b7ae203 (patch)
tree41c1213e67f25a6cfd521446a924f67869759c21
parent33f440c88543c32b70b0ba9458dc047c35ad23c9 (diff)
qcdm: handle more test failures for NW subsystem
Bandrich C120 returns BAD_LENGTH rather than BAD_COMMAND, perhaps because it re-uses the same subsystem number for something else.
-rw-r--r--libqcdm/tests/test-qcdm-com.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libqcdm/tests/test-qcdm-com.c b/libqcdm/tests/test-qcdm-com.c
index bc29923..4fd0ad0 100644
--- a/libqcdm/tests/test-qcdm-com.c
+++ b/libqcdm/tests/test-qcdm-com.c
@@ -1649,8 +1649,10 @@ test_com_nw_subsys_modem_snapshot_cdma (void *f, void *data)
result = qcdm_cmd_nw_subsys_modem_snapshot_cdma_result (buf, reply_len, &err);
if (!result) {
/* Obviously not all devices implement this command */
- g_assert_cmpint (err, ==, -QCDM_ERROR_RESPONSE_BAD_COMMAND);
- return;
+ if ( err == -QCDM_ERROR_RESPONSE_BAD_COMMAND
+ || err == -QCDM_ERROR_RESPONSE_BAD_LENGTH)
+ return;
+ g_assert_cmpint (err, ==, QCDM_SUCCESS);
}
g_assert (result);