Rename tests/ -> test/ and update internal refs.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-10-03 12:22:33 +02:00
1 parent 692dbadd3a
commit c9633ffbb0
39 files changed
+3 -3

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#include "check.h"
int main(void)
{
FILE *fp;
char *dir = "/tmp";
char *file = "__foo__";
printf("Pass 1/2: fopenf() ===========================\n");
fp = fopenf("w", "%s/%s", dir, file);
if (fp) {
fputs("foo", fp);
fclose(fp);
}
fail_unless(fexist("/tmp/__foo__"));
printf("Pass 2/2: fremove() ==========================\n");
fremove("%s/%s", dir, file);
fail_unless(!fexist("/tmp/__foo__"));
printf("DONE =========================================\n");
return 0;
}