root/11-plateau.valgrind.test

Revision 1, 0.9 kB (checked in by ng, 5 years ago)

ajout des fichiers de départ au dépot

  • Property svn:executable set to *
Line 
1 #! ./testsuite
2 #
3 p Ce fichier constitue un test de base pour votre programme (version valgrind).
4 p Il crée un plateau, l'affiche et termine.
5 #
6 # Ce test est comparable au premier, sauf qu'il exécute votre programme dans
7 # valgrind pour vérifier votre gestion de la mémoire.
8 #
9 # Ce test échoue si vous avez des dépassements d'indice dans les tableaux,
10 # ou si vous avez des blocks mémoires alloués à certains endroits et jamais
11 # désalloués. Utilisez valgrind pour chasser ces problÚmes.
12
13 < d q
14 > FDGECECAADGECCDEAGDBGACFCCBCFBCFGEDBFDEAEEDBEDEGDFBCBECGDABGFAEB 0
15 $ valgrind --log-file-exactly=valgrind.out ./gemmes -q -sFDGECECAADGECCDEAGDBGACFCCBCFBCFGEDBFDEAEEDBEDEGDFBCBECGDABGFAEB
16
17 > ERROR SUMMARY: 0 errors from 0 contexts
18 $ grep "ERROR SUMMARY" valgrind.out | sed -e 's/^[^ ]* //' -e 's/ (.*$//'
19
20 > malloc/free: in use at exit: 0 bytes in 0 blocks.
21 $ grep "malloc/free: in use at exit:" valgrind.out | sed -e 's/^[^ ]* //'
22
23 $ rm valgrind.out
Note: See TracBrowser for help on using the browser.