A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compare file prefix only.
[simgrid.git]
/
src
/
xbt
/
cunit.cpp
diff --git
a/src/xbt/cunit.cpp
b/src/xbt/cunit.cpp
index
0983062
..
1bf8176
100644
(file)
--- a/
src/xbt/cunit.cpp
+++ b/
src/xbt/cunit.cpp
@@
-9,7
+9,7
@@
/* At some point we should use https://github.com/google/googletest instead */
#include "src/internal_config.h"
/* At some point we should use https://github.com/google/googletest instead */
#include "src/internal_config.h"
-#include <
stdio.h
>
+#include <
cstdio
>
#include <xbt/ex.hpp>
#include "xbt/sysdep.h" /* bvprintf */
#include <xbt/ex.hpp>
#include "xbt/sysdep.h" /* bvprintf */
@@
-250,9
+250,6
@@
static int xbt_test_suite_run(xbt_test_suite_t suite, int verbosity)
xbt_test_test_t test;
xbt_test_log_t log;
xbt_test_test_t test;
xbt_test_log_t log;
- unsigned int it_unit;
- unsigned int it_test;
-
if (suite == nullptr)
return 0;
if (suite == nullptr)
return 0;
@@
-276,6
+273,7
@@
static int xbt_test_suite_run(xbt_test_suite_t suite, int verbosity)
if (suite->enabled) {
/* iterate through all tests */
if (suite->enabled) {
/* iterate through all tests */
+ unsigned int it_unit;
xbt_dynar_foreach(suite->units, it_unit, unit) {
/* init unit case counters */
unit->nb_tests = 0;
xbt_dynar_foreach(suite->units, it_unit, unit) {
/* init unit case counters */
unit->nb_tests = 0;
@@
-297,6
+295,7
@@
static int xbt_test_suite_run(xbt_test_suite_t suite, int verbosity)
unit->func();
/* iterate through all performed tests to determine status */
unit->func();
/* iterate through all performed tests to determine status */
+ unsigned int it_test;
xbt_dynar_foreach(unit->tests, it_test, test) {
if (test->ignored) {
unit->test_ignore++;
xbt_dynar_foreach(unit->tests, it_test, test) {
if (test->ignored) {
unit->test_ignore++;