[CRIU] [PATCH 14/20] test/zdtm/live/static/session01.c: skip the test on non-x86 targets since it contains x86-specific lock operations.
Andrew Vagin
avagin at parallels.com
Thu Dec 13 14:31:36 EST 2012
futex-es are not specific for x86 and the same lock operations are used
in crtools...
On Wed, Dec 12, 2012 at 05:34:24PM +0400, alekskartashov at parallels.com wrote:
> From: Alexander Kartashov <alekskartashov at parallels.com>
>
> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
> ---
> test/zdtm/live/static/session01.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/test/zdtm/live/static/session01.c b/test/zdtm/live/static/session01.c
> index 2fe6aab..ab27cc4 100644
> --- a/test/zdtm/live/static/session01.c
> +++ b/test/zdtm/live/static/session01.c
> @@ -6,6 +6,8 @@
> #include <sys/mman.h>
>
> #include "zdtmtst.h"
> +
> +#if defined(__x86_64__)
> #include "lock.h"
>
> const char *test_doc = "Test that sid, pgid are restored";
> @@ -336,3 +338,15 @@ err:
> }
> return 1;
> }
> +
> +#else
> +
> +int main(int argc, char** argv)
> +{
> + test_init(argc, argv);
> + skip("Unsupported arch");
> +
> + return 0;
> +}
> +
> +#endif
> --
> 1.7.9.5
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> http://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list