testlibrary.c (flatpak-1.15.2.tar.xz) | : | testlibrary.c (flatpak-1.15.3.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 3271 | skipping to change at line 3271 | |||
g_assert_no_error (error); | g_assert_no_error (error); | |||
g_assert_nonnull (transaction); | g_assert_nonnull (transaction); | |||
res = flatpak_transaction_add_install (transaction, repo_name, app, NULL, &err or); | res = flatpak_transaction_add_install (transaction, repo_name, app, NULL, &err or); | |||
g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_ALREADY_INSTALLED); | g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_ALREADY_INSTALLED); | |||
g_assert_false (res); | g_assert_false (res); | |||
g_clear_error (&error); | g_clear_error (&error); | |||
g_clear_object (&transaction); | g_clear_object (&transaction); | |||
/* uninstall org.test.Hello with no_deploy set to TRUE. This should be a | ||||
* no-op. | ||||
*/ | ||||
transaction = flatpak_transaction_new_for_installation (inst, NULL, &error); | ||||
g_assert_no_error (error); | ||||
g_assert_nonnull (transaction); | ||||
flatpak_transaction_set_no_deploy (transaction, TRUE); | ||||
g_assert_true (flatpak_transaction_get_no_deploy (transaction)); | ||||
res = flatpak_transaction_add_uninstall (transaction, app, &error); | ||||
g_assert_no_error (error); | ||||
g_assert_true (res); | ||||
g_assert_true (flatpak_transaction_is_empty (transaction)); | ||||
list = flatpak_transaction_get_operations (transaction); | ||||
g_assert_cmpint (g_list_length (list), ==, 0); | ||||
g_list_free (list); | ||||
g_clear_object (&transaction); | ||||
/* uninstall org.test.Hello, we expect org.test.Hello.Locale to be | /* uninstall org.test.Hello, we expect org.test.Hello.Locale to be | |||
* removed with it, but org.test.Platform to stay | * removed with it, but org.test.Platform to stay | |||
*/ | */ | |||
transaction = flatpak_transaction_new_for_installation (inst, NULL, &error); | transaction = flatpak_transaction_new_for_installation (inst, NULL, &error); | |||
g_assert_no_error (error); | g_assert_no_error (error); | |||
g_assert_nonnull (transaction); | g_assert_nonnull (transaction); | |||
res = flatpak_transaction_add_uninstall (transaction, app, &error); | res = flatpak_transaction_add_uninstall (transaction, app, &error); | |||
g_assert_no_error (error); | g_assert_no_error (error); | |||
g_assert_true (res); | g_assert_true (res); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 22 lines changed or added |