tests: Get tod driver name from env variable

This commit is contained in:
Marco Trevisan (Treviño)
2020-12-04 02:06:54 +01:00
parent 1613c0de43
commit 7b0df77c49
4 changed files with 11 additions and 5 deletions
+3 -3
View File
@@ -100,7 +100,7 @@ test_device_open_sync_notify (void)
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
g_signal_connect (tctx->device, "notify::open", G_CALLBACK (on_open_notify), tctx);
fp_device_open_sync (tctx->device, NULL, &error);
g_assert_true (fp_device_open_sync (tctx->device, NULL, &error));
g_assert_no_error (error);
g_assert_true (GPOINTER_TO_INT (tctx->user_data));
}
@@ -147,7 +147,7 @@ test_device_get_driver (void)
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
fp_device_open_sync (tctx->device, NULL, NULL);
g_assert_cmpstr (fp_device_get_driver (tctx->device), ==, "fake_test_dev_tod");
g_assert_cmpstr (fp_device_get_driver (tctx->device), ==, g_getenv ("FP_TOD_TEST_DRIVER_NAME"));
}
static void
@@ -156,7 +156,7 @@ test_device_get_device_id (void)
g_autoptr(FptContext) tctx = fpt_context_new_with_fake_dev ();
fp_device_open_sync (tctx->device, NULL, NULL);
g_assert_cmpstr (fp_device_get_device_id (tctx->device), ==, "fake_test_dev_tod");
g_assert_cmpstr (fp_device_get_device_id (tctx->device), ==, g_getenv ("FP_TOD_TEST_DRIVER_NAME"));
}
static void