From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] Test library API changes
Date: Thu, 3 Mar 2016 08:13:40 -0500 (EST) [thread overview]
Message-ID: <322891927.4705109.1457010820487.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20160302144421.GC25763@rei>
----- Original Message -----
> From: "Cyril Hrubis" <chrubis@suse.cz>
> To: "Jan Stancek" <jstancek@redhat.com>, "Alexey Kodanev" <alexey.kodanev@oracle.com>
> Cc: ltp@lists.linux.it
> Sent: Wednesday, 2 March, 2016 3:44:21 PM
> Subject: Re: [LTP] Test library API changes
>
> Hi!
> The up to date version is at usuall place at:
>
> https://github.com/metan-ucw/ltp
>
>
> The changes are:
>
> * acnt was removed completly
>
> * the bitflags in struct tst_test were fixed to be 1 bit wide
>
> * the headers were changed so that most of the old headers starts with
> old_ prefix
>
> The safe_macros.h and test.h were left intact at the moment since
> these are included in numerous testcases. We can rename them in a
> separate patch if needed.
>
> * Added macro TST_TEST_TCONF() to ease writing testcases that are
> guarded by #ifdefs, see newly converted llistxattr testcases
>
> * Few more converted testcases
>
> * Started to update Test-Writing-Guidelines for new API
>
>
> The open issues:
>
> * The SHM base file path propagation
> - we will probably go with the env variable
>
> * Finishing rewrite of Test Writing Guidelines
> - needs just a bit more work
>
> * Should we allow SAFE_MACROS() in cleanup?
>
> - we can easily do that since cleanup is executed from the test
> library and we can change tst_brk() to return to the caller
> if cleanup was entered
In that case, tst_vbrk_() should also call update_results(), so TBROK
during cleanup doesn't get lost/ignored.
>
> - plus point is that writing cleanup is bit easier
>
> - minus point is that tst_brk() can now return and as a side effect
> tst_brkm() has to return as well (since tst_brkm() from safe macros
> is redirected to tst_brk()) and because of that we have to drop
> the __attribute__((noreturn)) since that causes gcc to optimize out
> return statements from the function which generates compilation
> warnings in some cases
I assume if we drop noreturn, we still have a different way to suppress
those warnings, right?
>
>
> Is there anything else?
I ran into number of compilation errors on RHEL5.6, but they will
likely happen on other distros too:
1. lib/ltp_priv.h and va_list
Adding "#include <stdarg.h>" fixed it.
2. preadv/preadv.h:27: undefined reference to `tst_brkm'
pread01 and pread02 share predv.h, which is using ltp_syscall
3. recvmsg02.c:68: error: ‘SOCK_CLOEXEC’ undeclared (first use in this function)
I'm guessing some old api header used to include also lapi/fcntl.h
Regards,
Jan
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>
next prev parent reply other threads:[~2016-03-03 13:13 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-05 11:11 [LTP] Test library API changes Cyril Hrubis
2016-01-07 13:01 ` Jan Stancek
2016-01-07 13:27 ` Cyril Hrubis
2016-02-04 10:56 ` Cyril Hrubis
2016-02-08 18:02 ` Cyril Hrubis
2016-02-09 16:43 ` Cyril Hrubis
2016-02-09 16:57 ` Cyril Hrubis
2016-02-09 17:46 ` Cyril Hrubis
2016-02-10 10:42 ` Jan Stancek
2016-02-10 10:56 ` Cyril Hrubis
2016-02-10 11:41 ` Cyril Hrubis
2016-02-11 16:03 ` Cyril Hrubis
2016-02-12 12:33 ` Jan Stancek
2016-02-12 17:53 ` Cyril Hrubis
2016-02-16 21:19 ` Cyril Hrubis
2016-02-17 14:39 ` Jan Stancek
2016-02-17 15:54 ` Cyril Hrubis
2016-02-18 9:05 ` Jan Stancek
2016-02-18 11:07 ` Cyril Hrubis
2016-02-18 11:26 ` Jan Stancek
2016-02-18 11:53 ` Cyril Hrubis
2016-03-02 14:44 ` Cyril Hrubis
2016-03-03 13:13 ` Jan Stancek [this message]
2016-03-03 14:00 ` Cyril Hrubis
2016-03-10 16:57 ` Cyril Hrubis
2016-03-11 13:57 ` Jan Stancek
2016-03-14 12:51 ` Cyril Hrubis
2016-03-14 16:00 ` Cyril Hrubis
2016-03-15 8:58 ` Jan Stancek
2016-03-15 9:22 ` Cyril Hrubis
2016-03-17 16:06 ` Cyril Hrubis
2016-03-18 9:44 ` Jan Stancek
2016-03-31 10:01 ` Cyril Hrubis
2016-04-01 14:45 ` Jan Stancek
2016-04-04 12:04 ` Cyril Hrubis
2016-04-04 14:12 ` Jan Stancek
2016-04-05 14:16 ` Cyril Hrubis
2016-04-05 15:06 ` Jan Stancek
2016-04-06 10:37 ` Cyril Hrubis
2016-03-14 16:40 ` Cyril Hrubis
2016-02-18 9:14 ` Alexey Kodanev
2016-02-18 10:40 ` Cyril Hrubis
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=322891927.4705109.1457010820487.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp@lists.linux.it \
/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.