[LTP] [PATCH v7 1/4] Refactor regen.sh script to generate syscalls

Petr Vorel pvorel@suse.cz
Thu Oct 31 14:44:24 CET 2024


> Hi!
> > $ ./configure
> > ...
> > + syscall_nr=__NR_writev
> > + echo # ifndef __NR_writev
> > + echo #  define __NR_writev __LTP__NR_INVALID_SYSCALL
> > + echo # endif
> > + echo #endif

> > $ ./configure > /tmp/out 2> /tmp/err; wc -l /tmp/out /tmp/err

> > on master:
> >   290 /tmp/out
> >     3 /tmp/err
> >   293 total

> > on v7 (at least what I apply from https://patchwork.ozlabs.org/series/430633/mbox/):
> >     289 /tmp/out
> >   48706 /tmp/err
> >   48995 total

> The /tmp/out now looks fine, there is a single line difference, that is
> the empty newline at the start of the file I asked to remove.

OK, it can be something on the setup of the VM I'm using (some Debian), which
uses dash as /bin/sh. I was not able to reproduce it on openSUSE Tumbleweed.
Feel free to ignore it.

But I have other error for generate_arch.sh which I'll report on the other
patchset.

Kind regards,
Petr


More information about the ltp mailing list