testcommon: An i386 Flatpak doesn't support x86_64 apps

The compatible architectures are not symmetric: x86_64 and aarch64 can
run i386 and arm binaries, but i386 and arm cannot usually run x86_64
and aarch64 binaries.

This caused test failures on Debian i386 autobuilders.

Signed-off-by: Simon McVittie <smcv@collabora.com>

Closes: #2603
Approved by: matthiasclasen
This commit is contained in:
Simon McVittie
2019-01-16 08:05:30 +00:00
committed by Atomic Bot
parent f28e8af968
commit 7c3140bb7a

View File

@@ -48,7 +48,7 @@ test_arches (void)
#if defined(__i386__)
g_assert_cmpstr (flatpak_get_arch (), ==, "i386");
g_assert_true (g_strv_contains (arches, "x86_64"));
g_assert_false (g_strv_contains (arches, "x86_64"));
g_assert_true (g_strv_contains (arches, "i386"));
#elif defined(__x86_64__)
g_assert_cmpstr (flatpak_get_arch (), ==, "x86_64");