d1e794d62b1bf619df8390535e4c2a58899b1145 |
|
30-Jul-2015 |
Cyril Hrubis <chrubis@suse.cz> |
lib: Get rid of unused tst_require_root() callback Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
d6d11d08678aac1ed2c370ea8e42e5f45aea07be |
|
09-Mar-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Introduce tst_parse_opts() The pattern that was used in all testcases is: const char *msg; msg = parse_opts(...); if (msg) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); This change simplifies the steps to just calling: tst_parse_opts(...); Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
aabb8340f63ed31afe995fd97795e542dc68b93c |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Include usctest.h in test.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
605fa3362fd7cef0baa2131be32cf44661783d3e |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Get rid of TEST_CLEANUP Special thanks to Coccinelle for making this easy job. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
8bfd7c194d56e2f2ff8bfc14b2824964d3a0e3ef |
|
03-Dec-2014 |
Li Wang <liwang@redhat.com> |
test cleanup should not use SAFE_FILE_* Add FILE_PRINTF() and FILE_SCANF() equivalents to SAFE_FILE_PRINTF() and SAFE_FILE_SCANF(). The difference is that the newly added functions does not exit the test execution and only prints a warning and therefore can be used from the test cleanup(). Make use of them in the testcases. Signed-off-by: Li Wang <liwang@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
0b9589f3f9c0345b29cfcf7da5a1253c708303eb |
|
27-May-2014 |
Cyril Hrubis <chrubis@suse.cz> |
testcases: Constify char *msg variable. The parse_opts() now returns const char * instead of char * this commit fixes all warnings caused by the change. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
d59a659cd639ca2780b00049d102acd2a783d585 |
|
07-Mar-2013 |
Caspar Zhang <caspar@casparzhang.com> |
s/Tst_count/tst_count/ to avoid CamelCase when using latest checkpatch.pl, CamelCase variables are not encouraged, this patch does a batch update to replace all var `Tst_count` with `tst_count`. Signed-off-by: Caspar Zhang <caspar@casparzhang.com> Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
354ebb48db8e66a853a58379a4808d5dcd1ceac3 |
|
07-Dec-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
cleanup code indent Cleanup the code indent using: find . -name *.c -exec Lindent {} \; It's really a big change, but can fix almost all of the indent problem in C code, although we can't ensure all of the changes are right, but the error changes are really few. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
2664913bb05558b8bf9ee403311370ed9f4a984f |
|
27-Nov-2012 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/fork13: Make use of SAFE_FILE_* interface. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
8b718291663a9d3424967c0767886e5699319959 |
|
18-Sep-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
fork13: code cleanups Fix coding style. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
4cb537aec9dc5683d826dfa9ab953ea9586f10c8 |
|
10-Jun-2011 |
tangchen <tangchen@cn.fujitsu.com> |
Replace wait() with waitpid() in fork13.c I got the following FAIL, and this FAIL often happens when running the fork13 test with -C option. See this: ./fork13 -c 3 -I 1 fork13 1 TPASS : 5729 pids forked, all passed fork13 1 TFAIL : Wait return value: expected pid=10511, got 32132, iteration 2957. fork13 1 TPASS : 2755 pids forked, all passed That is because the first process is the father of the other two processes, and when the father calls wait(), any of the children could be waited. So I think we should use waitpid() instead of wait(). Acked-by: Caspar Zhang <czhang@redhat.com> Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
3f0688d76b18c31fa3d1f36d096b9d1d19ab88cc |
|
04-Mar-2011 |
Garrett Cooper <yanegomi@gmail.com> |
Ensure fork13 better scales on standard machines. fork13 is a test prog backported from upstream mainline: 5fdee8c4a5e1800489ce61963208f8cc55e42ea1. However, it produces flooding outputs that may cause syscall output log too large (30GB+!!); also 10e+7 times fork is too time consuming, 10e+6 should be valid enough to reproduce the issue and it takes less time (~3min); if the test fails, it would put an error msg, this might cause flood error msg in output log as well, so I make it return immediately when a failure occurs. Signed-off-by: Caspar Zhang <czhang@redhat.com>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|
205be291c58d45a4844c17b346d16637152037e0 |
|
19-Jan-2011 |
Garrett Cooper <yanegomi@gmail.com> |
Add pid reuse race condition test. A program that repeatedly forks and waits is susceptible to having the same pid repeated, especially when it competes with another instance of the same program. This is really bad for bash implementation. Furthermore, many shell scripts assume that pid numbers will not be used for some length of time. Race Description: A B // pid == offset == n // pid == offset == n + 1 test_and_set_bit(offset, map->page) test_and_set_bit(offset, map->page); pid_ns->last_pid = pid; pid_ns->last_pid = pid; // pid == n + 1 is freed (wait()) // Next fork()... last = pid_ns->last_pid; // == n pid = last + 1; Signed-off-by: CAI Qian <caiqian@redhat.com>
/external/ltp/testcases/kernel/syscalls/fork/fork13.c
|