mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-17 22:49:36 -04:00
Update tests for changed errors
Great that we're actually testing these. Closes: #2150 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
868552cb1f
commit
823511b87a
@@ -194,27 +194,27 @@ test_ref (void)
|
||||
|
||||
ref = flatpak_ref_parse ("", &error);
|
||||
g_assert_null (ref);
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED);
|
||||
g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF);
|
||||
g_clear_error (&error);
|
||||
|
||||
ref = flatpak_ref_parse ("ref/or not", &error);
|
||||
g_assert_null (ref);
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED);
|
||||
g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF);
|
||||
g_clear_error (&error);
|
||||
|
||||
ref = flatpak_ref_parse ("ref/one/2/3", &error);
|
||||
g_assert_null (ref);
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED);
|
||||
g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF);
|
||||
g_clear_error (&error);
|
||||
|
||||
ref = flatpak_ref_parse ("app/a/b/c", &error);
|
||||
g_assert_null (ref);
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED);
|
||||
g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF);
|
||||
g_clear_error (&error);
|
||||
|
||||
ref = flatpak_ref_parse ("app/org.flatpak.Hello/b/.", &error);
|
||||
g_assert_null (ref);
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED);
|
||||
g_assert_error (error, FLATPAK_ERROR, FLATPAK_ERROR_INVALID_REF);
|
||||
g_clear_error (&error);
|
||||
|
||||
valid = "app/org.flatpak.Hello/x86_64/master";
|
||||
|
||||
Reference in New Issue
Block a user