Merge pull request #9360 from gebart/pr/embunit-const

embunit: Const test case names
This commit is contained in:
Joakim Nohlgård 2018-06-15 17:04:20 +02:00 committed by GitHub
commit 21bc3ca51f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@
#include "TestCase.h"
#include "TestCaller.h"
char* TestCaller_name(TestCaller* self)
const char* TestCaller_name(TestCaller* self)
{
return self->name;
}

View File

@ -39,7 +39,7 @@
static TestResult* result_;
static TestCase* self_;
char* TestCase_name(TestCase* self)
const char* TestCase_name(TestCase* self)
{
return self->name;
}

View File

@ -43,7 +43,7 @@ typedef struct __TestFixture TestFixture;
typedef struct __TestFixture* TestFixtureRef;/*downward compatible*/
struct __TestFixture {
char *name;
const char *name;
void(*test)(void);
};
@ -54,7 +54,7 @@ typedef struct __TestCaller* TestCallerRef;/*downward compatible*/
struct __TestCaller {
TestImplement* isa;
char *name;
const char *name;
void(*setUp)(void);
void(*tearDown)(void);
int numberOfFixtuers;

View File

@ -44,7 +44,7 @@ typedef struct __TestCase* TestCaseRef;/*compatible embUnit1.0*/
struct __TestCase {
TestImplement* isa;
char *name;
const char *name;
void(*setUp)(void);
void(*tearDown)(void);
void(*runTest)(void);