diff options
author | Elliott Hughes <enh@google.com> | 2014-03-11 12:55:31 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-03-11 12:55:31 -0700 |
commit | 68e0383289961e61ca35d2fbe1824fe7b6935890 (patch) | |
tree | 32acfa45ec543907631ffa29bc310eebf2aa215b | |
parent | ba2d8722ba758aec5ebb1c3d3153ba87f6a8510d (diff) | |
download | extras-68e0383289961e61ca35d2fbe1824fe7b6935890.tar.gz |
Remove obsolete system(3) test.
Change-Id: Ife11d1d526b92062090da231853f65329c0c8962
-rw-r--r-- | tests/bionic/libc/other/test_system.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/bionic/libc/other/test_system.c b/tests/bionic/libc/other/test_system.c deleted file mode 100644 index adb4c56a..00000000 --- a/tests/bionic/libc/other/test_system.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> -#include <sys/wait.h> -#include <errno.h> - -int -main(int argc, char *argv[]) -{ - int rv; - - if (argc < 2) - return -1; - - rv = system(argv[1]); - if (rv < 0) { - fprintf(stderr, "Error calling system(): %d\n", errno); - return 1; - } - - printf("Done!\n"); - - if (WEXITSTATUS(rv) != 0) { - fprintf(stderr, "Command returned non-zero exit code: %d\n", - WEXITSTATUS(rv)); - return 1; - } - return 0; -} |