CI Tests: fix /tests/Sanity/basic-linking-sanity

* use 'fclose'
* add missing includes
This commit is contained in:
Martin Coufal 2024-01-31 11:14:41 +01:00 committed by codonell
parent 82e9f5dfc6
commit cace4f829d
4 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,7 @@ int main(){
two[3] = '\0';
fprintf(fp, "Two: %s, length %d\n", two, strlen(two));
close(fp);
fclose(fp);
free(two);
return 0;
}

View File

@ -8,6 +8,6 @@ int main(){
fprintf(fp, "SIN: %0.2f\n", 1.0);
close(fp);
fclose(fp);
return 0;
}

View File

@ -41,6 +41,6 @@ int main(){
pthread_join(tw, NULL);
pthread_join(on, NULL);
close(fp);
fclose(fp);
return 0;
}

View File

@ -1,4 +1,5 @@
#include <stdio.h>
#include <sys/mman.h>
#include <fcntl.h>
int main(){
@ -16,6 +17,6 @@ int main(){
else
fprintf(fp, "shm_unlink successful\n");
close(fp);
fclose(fp);
return 0;
}