summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-05-15 15:59:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-05-15 20:51:00 -0700
commit0aa13f82eec6df408173dc24df9f05e6f785202f (patch)
tree0ca7336e9c498c8bf455cf19ef370b8265fc7f39 /tests
parente5a91feeae2136d6de535ed3eb3faae4e7e24b26 (diff)
downloadgnulib-0aa13f82eec6df408173dc24df9f05e6f785202f.tar.gz
spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
* tests/test-spawn.c (main): * tests/test-sys_socket.c (main): * tests/test-sys_wait.c (main): Don't have a switch value that isn't covered by a case.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-spawn.c2
-rw-r--r--tests/test-sys_socket.c2
-rw-r--r--tests/test-sys_wait.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-spawn.c b/tests/test-spawn.c
index cfa9dc62fd..5b68171c5d 100644
--- a/tests/test-spawn.c
+++ b/tests/test-spawn.c
@@ -40,7 +40,7 @@ extern void f (struct sched_param *g);
int
main (void)
{
- switch (0)
+ switch (POSIX_SPAWN_RESETIDS)
{
case POSIX_SPAWN_RESETIDS:
case POSIX_SPAWN_SETPGROUP:
diff --git a/tests/test-sys_socket.c b/tests/test-sys_socket.c
index 0ac8a33264..9084b18b6d 100644
--- a/tests/test-sys_socket.c
+++ b/tests/test-sys_socket.c
@@ -47,7 +47,7 @@ main (void)
sa_family_t i;
/* Check some errno values. */
- switch (0)
+ switch (ENOTSOCK)
{
case ENOTSOCK:
case EADDRINUSE:
diff --git a/tests/test-sys_wait.c b/tests/test-sys_wait.c
index 4dd2130500..7753da3983 100644
--- a/tests/test-sys_wait.c
+++ b/tests/test-sys_wait.c
@@ -31,17 +31,17 @@ main (void)
if (test_sys_wait_macros ())
return 1;
- switch (0)
- {
#if 0
+ switch (WCONTINUED)
+ {
/* Gnulib doesn't guarantee these, yet. */
case WCONTINUED:
case WEXITED:
case WNOWAIT:
case WSTOPPED:
-#endif
break;
}
+#endif
return a ? 1 : 0;
}