summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-09 06:25:03 -0400
committerMike Frysinger <vapier@gentoo.org>2009-04-09 06:25:03 -0400
commitff86b7a4f285c9f754665dfb9f342993fa7f62e6 (patch)
tree66bb8f2e1228c554e18974384b2372f6f7ef13e2 /tests/test-skel-0.c
parentgitignore: ignore all a.out binaries (diff)
downloadsandbox-ff86b7a4f285c9f754665dfb9f342993fa7f62e6.tar.gz
sandbox-ff86b7a4f285c9f754665dfb9f342993fa7f62e6.tar.bz2
sandbox-ff86b7a4f285c9f754665dfb9f342993fa7f62e6.zip
tests: make sure traced programs and signals workv1.9
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/test-skel-0.c')
-rw-r--r--tests/test-skel-0.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/test-skel-0.c b/tests/test-skel-0.c
index 150893f..c4de4db 100644
--- a/tests/test-skel-0.c
+++ b/tests/test-skel-0.c
@@ -9,8 +9,6 @@ const char *color_red = "\033[31;01m";
# define CONFIG 1
#endif
-#define PAIR(x) { #x, x },
-
int at_get_fd(const char *str_dirfd)
{
if (!strcmp(str_dirfd, "AT_FDCWD"))
@@ -86,33 +84,6 @@ dev_t sscanf_dev_t(const char *str_dev)
return (dev_t)dev;
}
-int lookup_errno(const char *str_errno)
-{
- struct {
- const char *name;
- int val;
- } const tbl[] = {
- PAIR(EACCES)
- PAIR(EBADF)
- PAIR(EEXIST)
- PAIR(EFAULT)
- PAIR(EINVAL)
- PAIR(EISDIR)
- PAIR(ELOOP)
- PAIR(ENAMETOOLONG)
- PAIR(ENODEV)
- PAIR(ENOENT)
- PAIR(ENOTDIR)
- PAIR(EPERM)
- PAIR(ETXTBSY)
- };
- int i;
- for (i = 0; i < ARRAY_SIZE(tbl); ++i)
- if (!strcmp(str_errno, tbl[i].name))
- return tbl[i].val;
- return 0;
-}
-
int main(int argc, char *argv[])
{
#if CONFIG