Back to index

glibc  2.9
Defines | Functions
tst-execv1.c File Reference
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include "../test-skeleton.c"

Go to the source code of this file.

Defines

#define TEST_FUNCTION   do_test ()

Functions

static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 21 of file tst-execv1.c.


Function Documentation

static int do_test ( void  ) [static]

Definition at line 6 of file tst-execv1.c.

{
  char *argv[] = { (char *) "does-not-exist", NULL };
  errno = 0;
  execv (argv[0], argv);

  if (errno != ENOENT)
    {
      printf ("errno = %d (%m), expected ENOENT\n", errno);
      return 1;
    }

  return 0;
}

Here is the call graph for this function: