diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
commit | df5520aa2dae5b3ce7abf8733dcdd152898af163 (patch) | |
tree | 00d3047bfb14f682bfb5a21010c731ed649bfed7 /app/bin/unittest/defaultstest.c | |
parent | df247efec654e512242e4f4f1b0212034f9e01fe (diff) | |
parent | ec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff) |
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
Diffstat (limited to 'app/bin/unittest/defaultstest.c')
-rw-r--r-- | app/bin/unittest/defaultstest.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/app/bin/unittest/defaultstest.c b/app/bin/unittest/defaultstest.c index e930468..06ae304 100644 --- a/app/bin/unittest/defaultstest.c +++ b/app/bin/unittest/defaultstest.c @@ -24,13 +24,13 @@ struct appDefault tests[] = { const char *libDir ="Parameter/directory/"; /** - * A dummy for the real MakePath function + * A dummy for the real MakePath function */ void MakeFullpath( char **result, ...) { - *result = libDir; + *result = libDir; } #define TESTARRAYSIZE (sizeof(tests) / sizeof(tests[0]) ) @@ -43,14 +43,16 @@ struct appDefault test1[] = { int -wPrefGetIntegerBasic(const char *section, const char *name, long *result, long defaultValue) +wPrefGetIntegerBasic(const char *section, const char *name, long *result, + long defaultValue) { *result = defaultValue; return(TRUE); } int -wPrefGetFloatBasic(const char *section, const char *name, double *result, double defaultValue) +wPrefGetFloatBasic(const char *section, const char *name, double *result, + double defaultValue) { *result = defaultValue; return(TRUE); @@ -62,7 +64,7 @@ char * wPrefGetStringBasic(const char *section, const char *name) } /* dummy to make the linker happy */ -void +void wPrefSetInteger(const char *section, const char *name, long value) { return; @@ -108,9 +110,9 @@ static void GetDefaults(void **state) int main(void) { - const struct CMUnitTest tests[] = { + const struct CMUnitTest tests[] = { cmocka_unit_test(BinarySearch), cmocka_unit_test(GetDefaults) - }; - return cmocka_run_group_tests(tests, NULL, NULL); + }; + return cmocka_run_group_tests(tests, NULL, NULL); } |