Skip to content
Extraits de code Groupes Projets
Valider 890f365c rédigé par Laurent Paucot's avatar Laurent Paucot
Parcourir les fichiers

test

parent 6842ba69
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #5718 réussi
...@@ -49,14 +49,14 @@ void short_file_test(void){ ...@@ -49,14 +49,14 @@ void short_file_test(void){
CU_FAIL("short_expected_output opening fail"); CU_FAIL("short_expected_output opening fail");
return; return;
} }
printf("check1\n");
int err = run("Test_files/short_input.txt","actual_output.txt",4); int err = run("Test_files/short_input.txt","actual_output.txt",4);
if (err == -1){ if (err == -1){
CU_FAIL("method run failed"); CU_FAIL("method run failed");
fclose(file1); fclose(file1);
return; return;
} }
printf("check2\n");
file2 = fopen("actual_output.txt","r"); file2 = fopen("actual_output.txt","r");
if (file2 == NULL){ if (file2 == NULL){
CU_FAIL("actual_output opening fail"); CU_FAIL("actual_output opening fail");
...@@ -93,7 +93,7 @@ void file_test(void){ ...@@ -93,7 +93,7 @@ void file_test(void){
clock_t start, end; clock_t start, end;
double time; double time;
start = clock(); start = clock();
printf("check1\n");
int err = run("Test_files/input.txt","actual_output.txt",4); int err = run("Test_files/input.txt","actual_output.txt",4);
end = clock(); end = clock();
...@@ -104,7 +104,7 @@ void file_test(void){ ...@@ -104,7 +104,7 @@ void file_test(void){
fclose(file1); fclose(file1);
return; return;
} }
printf("check2\n");
file2 = fopen("actual_output.txt","r"); file2 = fopen("actual_output.txt","r");
if (file2 == NULL){ if (file2 == NULL){
CU_FAIL("actual_output opening fail"); CU_FAIL("actual_output opening fail");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter