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

tests: Revert "tests: not redirect strderr to stdout"

This reverts commit 5314d36f3d.

Ok - some tests do look for 'stderr' output of 'not' commands.
So let's keep existing functionality.
This commit is contained in:
Zdenek Kabelac 2016-09-13 13:23:47 +02:00
parent cebcc8a604
commit 629059ee84

View File

@ -72,12 +72,9 @@ int main(int args, char **argv) {
fprintf(stderr, "Could not fork\n");
return FAILURE;
} else if (pid == 0) { /* child */
if (!strcmp(argv[0], "not")) {
if (!strcmp(argv[0], "not"))
val = ">1";
/* Redirect 'expected' error output */
fflush(stderr);
dup2(fileno(stdout), fileno(stderr));
} else if (!strcmp(argv[0], "invalid"))
else if (!strcmp(argv[0], "invalid"))
val = "3";
else if (!strcmp(argv[0], "fail"))
val = "5";