History log of /external/ltp/lib/tst_sig.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ad33a3dbf669a1f60f890bfa8f22d5ca1b7a4794 22-Jul-2016 Khem Raj <raj.khem@gmail.com> replace SIGCLD with SIGCHLD

SIGCLD is defined with SIGCHLD anyway

see

bits/signum.h:#define SIGCLD SIGCHLD /* Same as SIGCHLD(System V). */

additionally these tests can now compile on systemd with
musl libc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/tst_sig.c
0c1ba5cf772efed61ab71711a98b434c4f3a5bc9 11-Jun-2014 Cyril Hrubis <chrubis@suse.cz> lib/tst_sig: Fix fork_flag.

I've removed wrong the fork_flag check in commit:

commit 1dbf0b4a70c0ef7c849a0b3cd42da2c3874f9432
Author: Cyril Hrubis <chrubis@suse.cz>
Date: Tue Jun 10 13:49:05 2014 +0200

lib: Remove -c option and STD_COPIES

Remove -c option that was never working correctly.

This commit reinstates back the check that should have stayed there
and fixes all testcases that forks children.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/tst_sig.c
1dbf0b4a70c0ef7c849a0b3cd42da2c3874f9432 10-Jun-2014 Cyril Hrubis <chrubis@suse.cz> lib: Remove -c option and STD_COPIES

Remove -c option that was never working correctly.

The -c option, if set, forks the test in test setup() creating several
instances of the test to be running at the same time. The problems with
the implementation were:

* The failure of the forked tests WAS NOT popagaged to the first
instance

* The test driver (ltp-pan) tracks only the first instance and kills the
rest of the tests instances once the first one finishes

* Most of the tests does not expect to be running concurently
(there are races in using the same test directory, loop devices, etc.)

While the first two would be easy to fix the last one would require
reviewing and testing all testcases which is too much work.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/tst_sig.c
ab1d3b612458283f9c2de907b0501c92bf98bf82 02-Jun-2014 Cyril Hrubis <chrubis@suse.cz> lib/tst_sig: Remove CRAY and __sgi ifdefs.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/tst_sig.c
1a6f68acdb2601db939ffbd813359d7b8c752749 13-May-2014 Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> lib/tst_sig.c: output signal name when got unexpected signal

When testcase is killed by unexpected signal, usually it just prints
signal's value.
fcntl30 1 TBROK : unexpected signal 2 received (pid = 6714).
fcntl30 2 TBROK : Remaining cases broken

Here we also print signal's name to output more informative message.
fcntl30 1 TBROK : unexpected signal SIGINT(2) received (pid = 9872).
fcntl30 2 TBROK : Remaining cases broken

In this patch, we also add two new tst_ functions to convert errno or signal
to its name. The prototype is below:
const char *tst_strsig(int sig); returns signal name given signal number
const char *tst_strerrno(int err); returns errno name given errno number

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/lib/tst_sig.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/lib/tst_sig.c
fed9641096e27f79a0f2d9adfe9839dd8d11dc0f 24-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Fix FSF address

find . -type f -exec sed -i 's/the Free Software Foundation, Inc., 59/the Free Software Foundation, Inc.,/g;s/Temple Place - Suite 330, Boston MA 02111-1307, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/lib/tst_sig.c
ec6edca7aa42b6affd989ef91b5897f96795e40f 18-Oct-2012 Chris Dearman <chris@mips.com> Add missing newline at end of file

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e '$a\'

Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/lib/tst_sig.c
1e6f5a673655551de5734ff31ef48cd63b604e6d 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Resolving all compile errors via a script

This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.

As a side-effect, fix all trailing whitespace issues.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/lib/tst_sig.c
6a464fe46bbd688da16578ed3142c2ea10e21324 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Remove unnecessary tst_sig code.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/lib/tst_sig.c
6daba92decd32725bd971d6d31feb374ec0a3551 28-Aug-2009 vapier <vapier> cleanup code style
/external/ltp/lib/tst_sig.c
c6d1b7fd5ecc5858d827d4e4bd3e91195fc63b66 28-Aug-2009 vapier <vapier> convert warning message over to TERRNO
/external/ltp/lib/tst_sig.c
45a8ba0302fa0632410b2f100f92701651dd7a0f 20-Jul-2009 vapier <vapier> trim trailing whitespace
/external/ltp/lib/tst_sig.c
e6508f8343333b4fe0696cf354e5f0cd7a2289b6 04-Jan-2005 mridge <mridge> Porting changes to provide compatability of LTP with Solaris, HP-UX and AIX
/external/ltp/lib/tst_sig.c
79c135cdb56c3e324de643101c0b69aa29006f8c 19-May-2004 robbiew <robbiew> Applied patch from Alastair McKinstry to allow LTP to build on Linux/HPPA
/external/ltp/lib/tst_sig.c
3e36a84b56157516dd4cc2387404330db7ca9623 25-Nov-2003 robbiew <robbiew> Allowed the test driver to ignore all real-time signals.
/external/ltp/lib/tst_sig.c
fcea2b440e76eec3bc3b336c2cb9fb472a8e5f35 25-Sep-2003 robbiew <robbiew> Recoded how we handle NPTL installed systems. We know ignore signals 32 and
33, regardless of whether or not the system runs NPTL or Linuxthreads.
/external/ltp/lib/tst_sig.c
df45043bf9d6d3db66e0b66460b290724917bf5d 28-Apr-2003 robbiew <robbiew> Added code to handle situations where NPTL is installed.
/external/ltp/lib/tst_sig.c
a70576c4834d89f937e46698fef4114736cce4d7 04-Mar-2003 robbiew <robbiew> Removed "extern int errno" lines and replaced with "#include <errno.h>"
/external/ltp/lib/tst_sig.c
d85220153bca26dee164620a8b575c4665f9218d 01-Jun-2001 nstraz <nstraz> Accepting a patch by Wayne Boyer to make tst_sig() detect whether SIGCHLD
is unexpected or not.
/external/ltp/lib/tst_sig.c
3c8699d4df9cdcbadb36293fc31f4be9f8f5b8fb 07-Sep-2000 alaffin <alaffin> Update tst_sig.c to use tst_setup_signal() to setup signals than
varying versions of signal().

Change "Linux Torvalds" to "Linus Torvalds" in CREDITS.
/external/ltp/lib/tst_sig.c
9418108733276af88b5458a866b6cd9a90e9232a 30-Aug-2000 nstraz <nstraz> - Removed mc_getopt.c and used getopt() instead. user defined help is now
passed into parse_opts(). Related changes to all tests.
- Fixed prototype issues and code cleanup on all tests. cc -Wall now produces
no warnings on Linux.
/external/ltp/lib/tst_sig.c
cc2e55555ae520d1851cd9198daa41845e1c7c82 27-Jul-2000 alaffin <alaffin> New additions:
- tst_ library code.
- new quickhit tests
- more general code cleanup
/external/ltp/lib/tst_sig.c