From: mquinson Date: Thu, 20 Dec 2007 13:57:08 +0000 (+0000) Subject: Call xbt_exit in the test runner (to check leaks) X-Git-Tag: v3.3~705 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6b740dbac380307523d63ba35837aaa1893a7c18 Call xbt_exit in the test runner (to check leaks) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5146 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/tools/sg_unit_extractor.pl b/tools/sg_unit_extractor.pl index f3f08cd13f..30686a70d1 100755 --- a/tools/sg_unit_extractor.pl +++ b/tools/sg_unit_extractor.pl @@ -98,6 +98,7 @@ int main(int argc, char *argv[]) { xbt_test_suite_t suite; char selection[1024]; int i;\n + int res;\n /* SGU: BEGIN SUITES DECLARATION */ /* SGU: END SUITES DECLARATION */ @@ -146,7 +147,9 @@ int main(int argc, char *argv[]) { } /* Got all my tests to do */ - return xbt_test_run(selection); + res = xbt_test_run(selection); + xbt_exit(); + return res; } EOF print OUT $GENERATED;