1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

The "should" testing utility should actually only give a warning when the

command fails.
This commit is contained in:
Petr Rockai 2010-05-12 05:55:42 +00:00
parent 4aa8216d7e
commit 69638ad6b1

View File

@ -8,7 +8,8 @@ int finished(const char *cmd, int status) {
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;