CI Tests: fix /tests/Sanity/basic-linking-sanity
* use 'fclose' * add missing includes
This commit is contained in:
parent
82e9f5dfc6
commit
cace4f829d
@ -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;
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ int main(){
|
||||
fprintf(fp, "SIN: %0.2f\n", 1.0);
|
||||
|
||||
|
||||
close(fp);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
|
@ -41,6 +41,6 @@ int main(){
|
||||
pthread_join(tw, NULL);
|
||||
pthread_join(on, NULL);
|
||||
|
||||
close(fp);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user