Back to index

glibc  2.9
Defines | Functions
tst-execl1.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 21 of file tst-execl1.c.

Function Documentation

static int do_test ( void  ) [static]

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

  static const char prog[] = "does-not-exist";
  errno = 0;
  execl (prog, prog, NULL);

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

  return 0;

Here is the call graph for this function: