From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Anthony PERARD <anthony.perard@vates.tech>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH 2/2] tootls/tests: introduce unit tests for rangesets
Date: Fri, 11 Apr 2025 11:00:41 +0200 [thread overview]
Message-ID: <Z_jaOf2oyo3X6Gk8@macbook.lan> (raw)
In-Reply-To: <964624cb-2b21-4228-8774-2fd697ae13e6@suse.com>
On Fri, Apr 11, 2025 at 10:21:08AM +0200, Jan Beulich wrote:
> On 11.04.2025 09:55, Roger Pau Monne wrote:
> > --- /dev/null
> > +++ b/tools/tests/rangeset/harness.h
> > @@ -0,0 +1,71 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> > +/*
> > + * Unit tests for rangesets.
> > + *
> > + * Copyright (C) 2025 Cloud Software Group
> > + */
> > +
> > +#ifndef _TEST_HARNESS_
> > +#define _TEST_HARNESS_
> > +
> > +#include <assert.h>
> > +#include <errno.h>
> > +#include <stdbool.h>
> > +#include <stddef.h>
> > +#include <stdint.h>
> > +#include <stdio.h>
> > +#include <stdlib.h>
> > +#include <string.h>
> > +
> > +#include <xen-tools/common-macros.h>
> > +
> > +#define smp_wmb()
> > +#define __must_check __attribute__((__warn_unused_result__))
> > +#define cf_check
> > +
> > +#define BUG_ON(x) assert(!(x))
> > +#define ASSERT(x) assert(x)
> > +
> > +#include "list.h"
> > +#include "rangeset.h"
> > +
> > +typedef bool rwlock_t;
> > +typedef bool spinlock_t;
>
> Are spinlocks really required for the rangeset code?
It's noted a bit below in this same file:
/* For rangeset_domain_{initialize,printk}() */
Otherwise rangeset.c won't build.
Will adjust the rest of your comments before commit, thanks!
Roger.
prev parent reply other threads:[~2025-04-11 9:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-11 7:55 [PATCH 0/2] xen/rangeset: one bugfix and unit testing Roger Pau Monne
2025-04-11 7:55 ` [PATCH 1/2] xen/rangeset: fix incorrect subtraction Roger Pau Monne
2025-04-11 8:16 ` Jan Beulich
2025-04-11 7:55 ` [PATCH 2/2] tootls/tests: introduce unit tests for rangesets Roger Pau Monne
2025-04-11 8:21 ` Jan Beulich
2025-04-11 9:00 ` Roger Pau Monné [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z_jaOf2oyo3X6Gk8@macbook.lan \
--to=roger.pau@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.