send showerror output to kernel log if neither dos nor intuition are available
[cake.git] / test / clib / tmpfile.c
blob23db1896a0616fdb061c249484bacf5f45e926fb
1 #include <stdio.h>
2 #include <string.h>
3 #include "test.h"
5 int main()
8 int i;
9 FILE * fp;
11 /* FIXME: loop over about 30 to test that tmpfile() copes with
12 more temp files than there are letters in the alphabet. This
13 is known to be a bug as at 11-Sep-2005
15 for(i = 0; i<20; i++) /* repeat test to catch problems */
17 fp = tmpfile();
18 TEST((fp != NULL));
19 fprintf(fp, "test text %d", i);
23 return OK;
26 void cleanup()
28 /* Nothing to clean up */