diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:30 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:30 +0200 |
commit | a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (patch) | |
tree | e469179df67a0e0db49161a43cbf8076a189f6f4 /app/bin/unittest/defaultstest.c | |
parent | 5d2c2b27a6323e2666378b986129b2a7c2c39e5c (diff) |
New upstream version 5.3.0GAupstream/5.3.0GAupstream
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); } |