Back to index

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

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 22 of file tst-execle1.c.

Function Documentation

static int do_test ( void  ) [static]

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

  static const char prog[] = "does-not-exist";
  const char *env [] = {"FOO=BAR", NULL};
  errno = 0;
  execle (prog, prog, NULL, env);

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

  return 0;

Here is the call graph for this function: