a5bf5254ca94e0164af76d409224ea0764632d22 |
|
14-Mar-2017 |
Cyril Hrubis <chrubis@suse.cz> |
tst_test.c: set the test id automatically Use the argv[0] to set the tst_test->tid automatically since we fail to update it commonly and we end up with wrong tid due to copy&paste. Now it's initialized in the test setup based on argv[0]. If argv[0] is a path we take last element in it. This patch is based on v1 by Li Wang but I've omitted moving the parse_opts() up in the setup() since the setup() function expects that tst_test sturcture is non-NULL and may segfault if that is not true. Signed-off-by: Li Wang <liwang@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Acked-by: Petr Vorel <pvorel@suse.cz>
/external/ltp/lib/newlib_tests/test08.c
|
6440c5d0d1509a28c8d48b5ab3fd9d707f3ec36f |
|
09-Feb-2017 |
Cyril Hrubis <chrubis@suse.cz> |
newlib: Allow SAFE_MACROS to be called from cleanup Which is done by: * Dropping attribute ((noreturn)) from all tst_brk_() definitions so that the function could actually return in case it's called from cleanup. This patch also fixes a few warnings caused by the change. * Adding brk handler to tst_test.c so that we can temporarily replace the tst_brk_() function with function that maps TBROK to TWARN and calls tst_vres_(). + updated test-writing-guidelines + testcase Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/lib/newlib_tests/test08.c
|
c54ca05163601b5aad8a3d671444a4364de107ef |
|
13-Apr-2016 |
Jan Stancek <jstancek@redhat.com> |
tst_atomic: make tst_atomic_inc take a signed integer This is a preparation for upcoming patches, which add atomic_add_return(), based on kernel function of same name. Kernel's atomic_t is int based, so let's match that. Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/newlib_tests/test08.c
|
a5a91a72a09580c686c51ca2dc5c03ae698eb43e |
|
14-Apr-2016 |
Cyril Hrubis <chrubis@suse.cz> |
lib/newlib_tests: Fixes. * Remove .forks_child from test08 * Add tst_brkm_ and tst_resm_ prototypes to test02 Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/newlib_tests/test08.c
|
bbdb9f78378c7e038f463efa39d2470e1c51ad54 |
|
16-Mar-2016 |
Cyril Hrubis <chrubis@suse.cz> |
lib: Add new test library API The main features are: o The cleanup callback is not passed directly to various library functions but is set once globally in the structure that describes a test - this makes the test API easier to use - also fixes a few common mistakes such as passing cleanup callback to functions executed from a cleanup o Most of the boilerplate code is moved to library - no more copying standard looping code around :) o Various resources are initialized and freed automatically when requested - this means much less race conditions and ordering problems in cleanups o The result reporting functions now use shared memory to propagate test results from child processes - writing tests in child processes is now easier than ever + The test-writing-guidelines.txt were updated Many thanks to Jan who reviewed numerous respins of this patches and provided valuable suggestions and also to Alexey who pointed out some stupid mistakes of mine. Reviewed-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/newlib_tests/test08.c
|