diff options
author | Dan Williams <dcbw@redhat.com> | 2012-01-10 18:15:11 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-01-10 18:15:11 -0600 |
commit | d085e6c46741832bd6edc167077664d821c0a489 (patch) | |
tree | fa71d25a5201492b32a410669d1013d59d4c1de9 /libqcdm | |
parent | ff838972cfef660cabfe7224d50459d5148b5f64 (diff) |
qcdm: fix up testcases for more expected error codes
I'm bored and playing around with a Novatel E725...
Diffstat (limited to 'libqcdm')
-rw-r--r-- | libqcdm/tests/test-qcdm-com.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libqcdm/tests/test-qcdm-com.c b/libqcdm/tests/test-qcdm-com.c index acb03f6d..76987e3a 100644 --- a/libqcdm/tests/test-qcdm-com.c +++ b/libqcdm/tests/test-qcdm-com.c @@ -613,7 +613,8 @@ test_com_read_hdr_rev_pref (void *f, void *data) if (!result) { if ( err == -QCDM_ERROR_NVCMD_FAILED || err == -QCDM_ERROR_RESPONSE_BAD_PARAMETER - || err == -QCDM_ERROR_NV_ERROR_INACTIVE) + || err == -QCDM_ERROR_NV_ERROR_INACTIVE + || err == -QCDM_ERROR_NV_ERROR_BAD_PARAMETER) return; g_assert_cmpint (err, ==, QCDM_SUCCESS); } @@ -1409,7 +1410,7 @@ test_com_zte_subsys_status (void *f, void *data) result = qcdm_cmd_zte_subsys_status_result (buf, reply_len, &err); if (!result) { /* Obviously not all devices implement this command */ - g_assert_cmpint (err, ==, QCDM_ERROR_RESPONSE_BAD_COMMAND); + g_assert_cmpint (err, ==, -QCDM_ERROR_RESPONSE_BAD_COMMAND); g_message ("%s: device does not implement the ZTE subsystem", __func__); return; } @@ -1450,7 +1451,7 @@ 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); + g_assert_cmpint (err, ==, -QCDM_ERROR_RESPONSE_BAD_COMMAND); return; } g_assert (result); |