projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1db65a
)
src: Use variable name for accessing the array elements
author
Andreas Schneider
<asn@cryptomilk.org>
Wed, 30 Sep 2015 11:07:08 +0000
(13:07 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Wed, 30 Sep 2015 11:07:08 +0000
(13:07 +0200)
src/cmocka.c
patch
|
blob
|
history
diff --git
a/src/cmocka.c
b/src/cmocka.c
index
2fc46f3
..
1a41e52
100644
(file)
--- a/
src/cmocka.c
+++ b/
src/cmocka.c
@@
-2576,9
+2576,9
@@
int _cmocka_run_group_tests(const char *group_name,
cmprintf(PRINTF_TEST_START, test_number, cmtest->test->name, NULL);
if (group_state != NULL) {
- cm
_tests[i].
state = group_state;
- } else if (cm
_tests[i].test->initial_state
!= NULL) {
- cm
_tests[i].state = cm_tests[i].
test->initial_state;
+ cm
test->
state = group_state;
+ } else if (cm
test->test->initial_state
!= NULL) {
+ cm
test->state = cmtest->
test->initial_state;
}
rc = cmocka_run_one_tests(cmtest);