vala-unit: Skip gee collection in older valac

It will fail without current vala head, so just skip under 0.48 or less.

See GNOME/vala#992
This commit is contained in:
Michael Gratton 2020-05-17 19:51:45 +10:00 committed by Michael James Gratton
parent 0ae633d88f
commit 7c48589550

View file

@ -173,6 +173,9 @@ public class CollectionAssertions : ValaUnit.TestCase {
} }
public void int_gee_collection() throws GLib.Error { public void int_gee_collection() throws GLib.Error {
#if !VALA_0_50
skip("Collections containing non-pointer values not currently supported. See GNOME/vala#992");
#endif
var intv = new int[] { 42, 1337 }; var intv = new int[] { 42, 1337 };
assert_collection(new_gee_collection(intv)) assert_collection(new_gee_collection(intv))
.is_non_empty() .is_non_empty()