History log of /external/kmod/testsuite/test-testsuite.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a6ede6c7ad46b5e2b8eddddca5590c0b745b045a 10-Aug-2016 Lucas De Marchi <lucas.demarchi@intel.com> util: fix warning of equal values on logical OR

shared/util.c: In function ‘read_str_safe’:
shared/util.c:211:24: warning: logical ‘or’ of equal expressions [-Wlogical-op]
if (errno == EAGAIN || errno == EWOULDBLOCK ||
^~
shared/util.c: In function ‘write_str_safe’:
shared/util.c:237:24: warning: logical ‘or’ of equal expressions [-Wlogical-op]
if (errno == EAGAIN || errno == EWOULDBLOCK ||
^~

This is because EAGAIN and EWOULDBLOCK have the same value. Prefer
EAGAIN, but add a static assert to catch if it's not the same in another
architecture.
/external/kmod/testsuite/test-testsuite.c
5c42c5fcedb3d1ce1de62711870e691cf768f4ca 14-Jan-2015 Lucas De Marchi <lucas.demarchi@intel.com> testsuite: prefer the use of streq()
/external/kmod/testsuite/test-testsuite.c
f357866d97995e30c0ad623880d28dc527ff6890 02-Jan-2015 Lucas De Marchi <lucas.demarchi@intel.com> Fix includes after change to build-sys

Make the includes be libkmod/libkmod.h for code outside of library. This
fixes the broken build after 1315123 ('build-sys: Don't add libkmod
subdirectory to include path').
/external/kmod/testsuite/test-testsuite.c
dea2dfee9b301da84dbb09cf510b8ebf2ef28fff 26-Dec-2014 Lucas De Marchi <lucas.demarchi@intel.com> Remove FSF mailing address

It has changed in the past, and these days, anyone can get a copy of the
LGPL via the web rather than by post.

Like 657a122 (Remove FSF mailing address) in libabc by Josh Tripplet,
but let the FSF website in which the license can be found.
/external/kmod/testsuite/test-testsuite.c
4328982058bd6840518ff552a0405bf8f9d73909 09-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> testsuite: remove now unused array of tests

Remove the arrays and let each test with a guaranteed unique name.
/external/kmod/testsuite/test-testsuite.c
f1155c1574b07c1e63cc6a06d51b32bc44bebcc3 09-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> Move static keyword to DEFINE_TEST macro
/external/kmod/testsuite/test-testsuite.c
c2e4286bb98c6bec77575ac0c6f862e7ddf6394f 03-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> Reorder and reorganize header files

Let the includes in the following order:

< system headers >
< libkmod >
< tool >
< local headers >
/external/kmod/testsuite/test-testsuite.c
d96ca9c42930a2a0942b807b9afb3053f38ec9b9 17-Dec-2013 Lucas De Marchi <lucas.demarchi@intel.com> Use C11's noreturn

Also define noreturn w/o <stdnoreturn.h> and move it to macro.h instead
of in the testsuite.

Based on similar commit on systemd by Shawn Landden
<shawn@churchofgit.com>.
/external/kmod/testsuite/test-testsuite.c
e6b0e49b4ea7937a98b16f23d621244ee1a3e588 16-Jan-2013 Lucas De Marchi <lucas.demarchi@profusion.mobi> Update copyright notices
/external/kmod/testsuite/test-testsuite.c
e1b1ab24ab7b690343dbddd8087b17f6d722327c 10-Jul-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: re-license under LGPL
/external/kmod/testsuite/test-testsuite.c
32d29b352338e5f01641eed08ab94d79d943e707 08-Feb-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> Mark functions with attribute noreturn

Functions that always call exit() should be marked with attribute
noreturn. With glibc this is not necessary, but it fails to compile with
uClibc otherwise.
/external/kmod/testsuite/test-testsuite.c
c5d81989bc09cf735e3d7bd4e74381b4fe65ffad 07-Feb-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: macronify test definitions
/external/kmod/testsuite/test-testsuite.c
e9fa9de3c9fa60f85baddee6fc07229b2c48b2f9 07-Feb-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: macronify main function
/external/kmod/testsuite/test-testsuite.c
e701e381faac8977f472b881d426335b869998dc 26-Jan-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: add GPL license
/external/kmod/testsuite/test-testsuite.c
4e36cb18e1a4b904a739980637c4a6165e206691 25-Jan-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: add trap to opendir() including tests
/external/kmod/testsuite/test-testsuite.c
1426a613fa172604a4a3321238fdc6e53017f610 25-Jan-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: add trap to stat() and friends including tests

Add trap to stat(): we need to trap other functions too, depending on
stat.h, the function from glibc that is actually called may be stat64 or
__xstat() too.
/external/kmod/testsuite/test-testsuite.c
7fa8c2d2df4d4c881bfe53309e5e5772cf507d9b 25-Jan-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: add trap to open() including tests
/external/kmod/testsuite/test-testsuite.c
6afc9cd616f792deafc9d5d1ee3cd7edd5d90ce2 25-Jan-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: add trap to fopen() including tests
/external/kmod/testsuite/test-testsuite.c
ab25311072f4d40a2de705aa17edca401035da53 25-Jan-2012 Lucas De Marchi <lucas.demarchi@profusion.mobi> testsuite: fake kernel 4.0.20-kmod is out

Go get it while it's fresh :-). Test fake results of "uname -r" by
LD_PRELOAD'ing uname.so.
/external/kmod/testsuite/test-testsuite.c