public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test not.c
@ 2009-02-17 19:37 mornfall
0 siblings, 0 replies; 2+ messages in thread
From: mornfall @ 2009-02-17 19:37 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall@sourceware.org 2009-02-17 19:37:28
Modified files:
test : not.c
Log message:
In testsuite's not.c, print a notice when program dies of a fatal signal.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/not.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/test/not.c 2009/01/12 18:45:44 1.1
+++ LVM2/test/not.c 2009/02/17 19:37:28 1.2
@@ -25,6 +25,10 @@
} else { /* parent */
waitpid(pid, &status, 0);
if (!WIFEXITED(status)) {
+ if (WIFSIGNALED(status))
+ fprintf(stderr,
+ "Process %d died of signal %d.\n",
+ pid, WTERMSIG(status));
/* did not exit correctly */
return FAILURE;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* LVM2/test not.c
@ 2010-05-12 5:55 mornfall
0 siblings, 0 replies; 2+ messages in thread
From: mornfall @ 2010-05-12 5:55 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall@sourceware.org 2010-05-12 05:55:42
Modified files:
test : not.c
Log message:
The "should" testing utility should actually only give a warning when the
command fails.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/not.c.diff?cvsroot=lvm2&r1=1.3&r2=1.4
--- LVM2/test/not.c 2010/04/30 14:33:39 1.3
+++ LVM2/test/not.c 2010/05/12 05:55:42 1.4
@@ -8,7 +8,8 @@
if (!strcmp(cmd, "not"))
return !status;
if (!strcmp(cmd, "should")) {
- fprintf(stderr, "TEST WARNING: Ignoring command failure.\n");
+ if (status)
+ fprintf(stderr, "TEST WARNING: Ignoring command failure.\n");
return 0;
}
return 6;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-12 5:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-17 19:37 LVM2/test not.c mornfall
2010-05-12 5:55 mornfall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).