diff options
author | Eric Blake <eblake@redhat.com> | 2010-11-03 16:48:56 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-11-03 16:52:51 -0600 |
commit | 37b74cd909f60076a096ab8ac2635bc77755153f (patch) | |
tree | 8c8150252f38a19e22a33cb86c8f026966287027 /tests/test-pipe2.c | |
parent | 19e1b753376b35a593cd8a8ddb91aa08e314e785 (diff) | |
download | gnulib-37b74cd909f60076a096ab8ac2635bc77755153f.tar.gz |
tests: fix compiler warnings
Detected by icc. The first three files are real test bugs, the
last merely silences a warning about mixing an int with an enum type.
* tests/test-getopt.h (test_getopt): Fix condition.
* tests/test-getopt_long.h (test_getopt_long): Likewise.
* tests/test-pipe2.c (main): Likewise.
* tests/test-quotearg-simple.c (main): Avoid icc warning.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/test-pipe2.c')
-rw-r--r-- | tests/test-pipe2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-pipe2.c b/tests/test-pipe2.c index e8e5798974..a39de584a4 100644 --- a/tests/test-pipe2.c +++ b/tests/test-pipe2.c @@ -117,8 +117,8 @@ main () ASSERT (fd[0] >= 0); ASSERT (fd[1] >= 0); ASSERT (fd[0] != fd[1]); - ASSERT (is_open (fd[0]) >= 0); - ASSERT (is_open (fd[1]) >= 0); + ASSERT (is_open (fd[0])); + ASSERT (is_open (fd[1])); if (use_cloexec) { ASSERT (is_cloexec (fd[0])); |