diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-11-23 12:36:47 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:25 +0100 |
commit | c58db4e015c1d6aeccccb167f7f2f68c211a3b86 (patch) | |
tree | fa5cdffcd6856ba236b8614349b1ee5714885242 /src/tests | |
parent | e4d8c4ace72e72c53951f80792d852ff4b043329 (diff) |
core: start using our newly defined errors
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test-qcdm-serial-port.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/test-qcdm-serial-port.c b/src/tests/test-qcdm-serial-port.c index 8965c66a..ab695977 100644 --- a/src/tests/test-qcdm-serial-port.c +++ b/src/tests/test-qcdm-serial-port.c @@ -26,7 +26,9 @@ #include <sys/wait.h> #include <signal.h> -#include "mm-errors.h" +#include <ModemManager.h> +#include <mm-errors-types.h> + #include "mm-qcdm-serial-port.h" #include "libqcdm/src/commands.h" #include "libqcdm/src/utils.h" @@ -275,7 +277,7 @@ qcdm_verinfo_expect_fail_cb (MMQcdmSerialPort *port, { GMainLoop *loop = user_data; - g_assert_error (error, MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL); + g_assert_error (error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED); g_main_loop_quit (loop); } @@ -461,7 +463,7 @@ int main (int argc, char **argv) GTestSuite *suite; gint result; TestData *data = NULL; - + g_test_init (&argc, &argv, NULL); suite = g_test_get_root (); |