mirror of
https://github.com/troglobit/libite.git
synced 2026-10-19 10:59:32 +00:00
Rename tests/ -> test/ and update internal refs.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
692dbadd3a
commit
c9633ffbb0
39 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user