aboutsummaryrefslogtreecommitdiff
path: root/src/temp
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-01-04 20:36:02 -0300
committerEuAndreh <eu@euandre.org>2024-01-05 05:47:09 -0300
commit8492f115890d56c98c1da24b9fdf26bb1b714c05 (patch)
tree7d90469d2aff11c2e4c8e99e7b46aa8e8eb43008 /src/temp
parentFix the build system. (diff)
downloadgrovel-8492f115890d56c98c1da24b9fdf26bb1b714c05.tar.gz
grovel-8492f115890d56c98c1da24b9fdf26bb1b714c05.tar.xz
Setup stub unit test infrastructure
Diffstat (limited to 'src/temp')
-rw-r--r--src/temp/__randname.c8
-rw-r--r--src/temp/mkdtemp.c8
-rw-r--r--src/temp/mkostemp.c8
-rw-r--r--src/temp/mkostemps.c8
-rw-r--r--src/temp/mkstemp.c8
-rw-r--r--src/temp/mkstemps.c8
-rw-r--r--src/temp/mktemp.c8
7 files changed, 56 insertions, 0 deletions
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