2010-11-03 Eric Blake <eblake@redhat.com>
+ tests: fix compiler warnings
+ * 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.
+
utimens: fix broken m4 test
* m4/utimens.m4 (gl_UTIMENS): Include correct headers.
ASSERT (q_value == NULL);
ASSERT (non_options_count == 0);
ASSERT (unrecognized == 0);
- ASSERT (optind = 1);
+ ASSERT (optind == 1);
ASSERT (!output);
}
#endif /* GNULIB_TEST_GETOPT_GNU */
ASSERT (q_value == NULL);
ASSERT (non_options_count == 0);
ASSERT (unrecognized == 0);
- ASSERT (optind = 1);
+ ASSERT (optind == 1);
}
/* Check that the '+' flag has to come first. */
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]));
ASSERT (!isprint ('\033'));
for (i = literal_quoting_style; i <= clocale_quoting_style; i++)
{
- set_quoting_style (NULL, i);
+ set_quoting_style (NULL, (enum quoting_style) i);
compare_strings (use_quotearg_buffer, &results_g[i].group1, ascii_only);
compare_strings (use_quotearg, &results_g[i].group2, ascii_only);
if (i == c_quoting_style)