qcdm: don't fail testcase on unknown mode pref values

EC168C has a value of 0x16 for mode pref, which is unknown.  But
that shouldn't fail the testcases.
This commit is contained in:
Dan Williams
2010-03-30 00:57:15 -07:00
parent 41c2e0a946
commit a7e7854171

View File

@@ -414,7 +414,10 @@ test_com_read_mode_pref (void *f, void *data)
/* Parse the response into a result structure */
result = qcdm_cmd_nv_get_mode_pref_result (buf, reply_len, &error);
g_assert (result);
if (!result) {
g_assert_error (error, QCDM_COMMAND_ERROR, QCDM_COMMAND_NVCMD_FAILED);
return;
}
g_print ("\n");
@@ -432,7 +435,8 @@ test_com_read_mode_pref (void *f, void *data)
msg = "automatic";
break;
default:
g_assert_not_reached ();
msg = "unknown";
break;
}
g_message ("%s: Mode preference: 0x%02X (%s)", __func__, pref, msg);