Blame gettext-tools/gnulib-tests/test-sys_wait.c

Packit 5b56b6
/* Test of <sys/wait.h> substitute.
Packit 5b56b6
   Copyright (C) 2009-2015 Free Software Foundation, Inc.
Packit 5b56b6
Packit 5b56b6
   This program is free software: you can redistribute it and/or modify
Packit 5b56b6
   it under the terms of the GNU General Public License as published by
Packit 5b56b6
   the Free Software Foundation; either version 3 of the License, or
Packit 5b56b6
   (at your option) any later version.
Packit 5b56b6
Packit 5b56b6
   This program is distributed in the hope that it will be useful,
Packit 5b56b6
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 5b56b6
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 5b56b6
   GNU General Public License for more details.
Packit 5b56b6
Packit 5b56b6
   You should have received a copy of the GNU General Public License
Packit 5b56b6
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit 5b56b6
Packit 5b56b6
/* Written by Eric Blake <ebb9@byu.net>, 2009.  */
Packit 5b56b6
Packit 5b56b6
#include <config.h>
Packit 5b56b6
Packit 5b56b6
#include <sys/wait.h>
Packit 5b56b6
Packit 5b56b6
/* Check for existence of required types.  */
Packit 5b56b6
static pid_t a;
Packit 5b56b6
Packit 5b56b6
#include "test-sys_wait.h"
Packit 5b56b6
Packit 5b56b6
int
Packit 5b56b6
main (void)
Packit 5b56b6
{
Packit 5b56b6
  if (test_sys_wait_macros ())
Packit 5b56b6
    return 1;
Packit 5b56b6
Packit 5b56b6
#if 0
Packit 5b56b6
  switch (WCONTINUED)
Packit 5b56b6
    {
Packit 5b56b6
  /* Gnulib doesn't guarantee these, yet.  */
Packit 5b56b6
    case WCONTINUED:
Packit 5b56b6
    case WEXITED:
Packit 5b56b6
    case WNOWAIT:
Packit 5b56b6
    case WSTOPPED:
Packit 5b56b6
      break;
Packit 5b56b6
    }
Packit 5b56b6
#endif
Packit 5b56b6
Packit 5b56b6
  return a ? 1 : 0;
Packit 5b56b6
}