From 8492f115890d56c98c1da24b9fdf26bb1b714c05 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 4 Jan 2024 20:36:02 -0300 Subject: Setup stub unit test infrastructure --- src/temp/__randname.c | 8 ++++++++ src/temp/mkdtemp.c | 8 ++++++++ src/temp/mkostemp.c | 8 ++++++++ src/temp/mkostemps.c | 8 ++++++++ src/temp/mkstemp.c | 8 ++++++++ src/temp/mkstemps.c | 8 ++++++++ src/temp/mktemp.c | 8 ++++++++ 7 files changed, 56 insertions(+) (limited to 'src/temp') diff --git a/src/temp/__randname.c b/src/temp/__randname.c index e9b970f1..fdc6484c 100644 --- a/src/temp/__randname.c +++ b/src/temp/__randname.c @@ -17,3 +17,11 @@ char *__randname(char *template) return template; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/temp/mkdtemp.c b/src/temp/mkdtemp.c index 5708257b..0dee3cf4 100644 --- a/src/temp/mkdtemp.c +++ b/src/temp/mkdtemp.c @@ -21,3 +21,11 @@ char *mkdtemp(char *template) memcpy(template+l-6, "XXXXXX", 6); return 0; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/temp/mkostemp.c b/src/temp/mkostemp.c index e3dfdd91..93e865d6 100644 --- a/src/temp/mkostemp.c +++ b/src/temp/mkostemp.c @@ -5,3 +5,11 @@ int mkostemp(char *template, int flags) { return __mkostemps(template, 0, flags); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/temp/mkostemps.c b/src/temp/mkostemps.c index 093d2380..e22d215c 100644 --- a/src/temp/mkostemps.c +++ b/src/temp/mkostemps.c @@ -26,3 +26,11 @@ int __mkostemps(char *template, int len, int flags) } weak_alias(__mkostemps, mkostemps); + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/temp/mkstemp.c b/src/temp/mkstemp.c index 76c835bb..402b6085 100644 --- a/src/temp/mkstemp.c +++ b/src/temp/mkstemp.c @@ -4,3 +4,11 @@ int mkstemp(char *template) { return __mkostemps(template, 0, 0); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/temp/mkstemps.c b/src/temp/mkstemps.c index f8eabfec..d42c3ecf 100644 --- a/src/temp/mkstemps.c +++ b/src/temp/mkstemps.c @@ -5,3 +5,11 @@ int mkstemps(char *template, int len) { return __mkostemps(template, len, 0); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/temp/mktemp.c b/src/temp/mktemp.c index 7b3d2648..071366bc 100644 --- a/src/temp/mktemp.c +++ b/src/temp/mktemp.c @@ -28,3 +28,11 @@ char *mktemp(char *template) errno = EEXIST; return template; } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif -- cgit v1.2.3