projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix lookup of collation sequence value during regexp matching
[platform/upstream/glibc.git]
/
posix
/
tst-execle1.c
1
#include <errno.h>
2
#include <stdio.h>
3
#include <unistd.h>
4
5
static int
6
do_test (void)
7
{
8
static const char prog[] = "does-not-exist";
9
const char *env [] = {"FOO=BAR", NULL};
10
errno = 0;
11
execle (prog, prog, NULL, env);
12
13
if (errno != ENOENT)
14
{
15
printf ("errno = %d (%m), expected ENOENT\n", errno);
16
return 1;
17
}
18
19
return 0;
20
}
21
22
#define TEST_FUNCTION do_test ()
23
#include "../test-skeleton.c"