[LTP] [PATCH v3 3/9] syscalls: Add epoll_wait09
Cyril Hrubis
chrubis@suse.cz
Tue Jul 14 11:35:53 CEST 2026
Hi!
> > +
> > +#include <sys/epoll.h>
> > +
> > +#include "tst_epoll.h"
> > +#include "tst_test.h"
> > +
> > +#define MAX_DEPTH 5
> > +
> > +static int epfds[MAX_DEPTH];
> > +static int fds[2] = {-1, -1};
> > +
> > +static struct tcase {
> > + int depth;
> > +} tcases[] = {
> > + {2},
> > + {3},
> > + {4},
> > + {5},
>
> nit: why not just define depth in the test?
> int depth = n + 2;
>
> And
> - .tcnt = ARRAY_SIZE(tcases),
> + .tcnt = MAX_DEPTH,
Done, however this has to be MAX_DEPTH-1,
since we are starting at depth 2.
> Also, could you run make check to fix formatting complains?
Also done.
And pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list