This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 101233f4b4f483e4633302fe978f051ee5c4e472 (commit) from 7d30cb21d991fc207b0cc99038494e647307a598 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/101233f4b4f483e4633302fe978f051ee5c4e...
commit 101233f4b4f483e4633302fe978f051ee5c4e472 Author: Cyril Hrubis metan@ucw.cz Date: Sat Oct 20 11:13:41 2012 +0200
tests: framework: Add UNTESTED test status.
diff --git a/tests/framework/test.c b/tests/framework/test.c index f4a8692..ccef65d 100644 --- a/tests/framework/test.c +++ b/tests/framework/test.c @@ -186,11 +186,25 @@ int fail_FILE(void) return TST_SUCCESS; }
+/* + * This status is returned when the could not be started + * because of unsufficient configuration + */ static int skipped_fn(void) { return TST_SKIPPED; }
+/* + * This status is returned when there was failure prior + * the actuall testing so we could not test the feature + * at all. + */ +static int untested_fn(void) +{ + return TST_UNTESTED; +} + static int res_fn(void) { if (access("test.c", R_OK) == 0) @@ -226,6 +240,7 @@ const struct tst_suite tst_suite = { .tests = { {.name = "Success test", .tst_fn = success_fn}, {.name = "Skipped test", .tst_fn = skipped_fn}, + {.name = "Untested test", .tst_fn = untested_fn}, {.name = "Sigsegv test", .tst_fn = sigsegv_fn}, {.name = "Failed test", .tst_fn = failed_fn}, {.name = "Stack overflow test", .tst_fn = stack_overflow_fn}, diff --git a/tests/framework/tst_job.c b/tests/framework/tst_job.c index a1f7272..8a0789b 100644 --- a/tests/framework/tst_job.c +++ b/tests/framework/tst_job.c @@ -77,6 +77,9 @@ static void stop_test(struct tst_job *job) case TST_SKIPPED: result = "[ e[1;30mSKIPPEDe[0m ]"; break; + case TST_UNTESTED: + result = "[ e[1;34mUNTESTEDe[0m ]"; + break; case TST_INTERR: result = "[ e[1;31mINTERNAL ERRORe[0m ]"; break; diff --git a/tests/framework/tst_log.c b/tests/framework/tst_log.c index 772b20b..a70f8c0 100644 --- a/tests/framework/tst_log.c +++ b/tests/framework/tst_log.c @@ -36,6 +36,8 @@ static const char *ret_to_bg_color(enum tst_ret ret) return "#008000"; case TST_SKIPPED: return "#888888"; + case TST_UNTESTED: + return "#0000bb"; case TST_INTERR: return "#800000"; case TST_SIGSEGV: @@ -64,6 +66,8 @@ static const char *ret_to_str(enum tst_ret ret) return "Success"; case TST_SKIPPED: return "Skipped"; + case TST_UNTESTED: + return "Untested"; case TST_INTERR: return "Internal Error"; case TST_SIGSEGV: diff --git a/tests/framework/tst_test.h b/tests/framework/tst_test.h index b9a0c17..c6ef4fe 100644 --- a/tests/framework/tst_test.h +++ b/tests/framework/tst_test.h @@ -24,15 +24,16 @@ #define TST_TEST_H
enum tst_ret { - TST_SUCCESS, /* Test succedded */ - TST_SKIPPED, /* Test skipped due to not enough memory, ENOSYS ... */ - TST_INTERR, /* Test framework error */ - TST_SIGSEGV, /* Test ended with SIGSEGV */ - TST_TIMEOUT, /* Test hasn't finished in time */ - TST_ABORTED, /* The abort() was called (possible double free) */ - TST_FPE, /* Floating point exception */ - TST_MEMLEAK, /* Memory leak was detected */ - TST_FAILED, /* Test failed */ + TST_SUCCESS, /* Test succedded */ + TST_SKIPPED, /* Test skipped due to not enough memory, ENOSYS ... */ + TST_UNTESTED, /* Test not finished because of failure */ + TST_INTERR, /* Test framework error */ + TST_SIGSEGV, /* Test ended with SIGSEGV */ + TST_TIMEOUT, /* Test hasn't finished in time */ + TST_ABORTED, /* The abort() was called (possible double free) */ + TST_FPE, /* Floating point exception */ + TST_MEMLEAK, /* Memory leak was detected */ + TST_FAILED, /* Test failed */ TST_MAX = TST_FAILED+1, };
-----------------------------------------------------------------------
Summary of changes: tests/framework/test.c | 15 +++++++++++++++ tests/framework/tst_job.c | 3 +++ tests/framework/tst_log.c | 4 ++++ tests/framework/tst_test.h | 19 ++++++++++--------- 4 files changed, 32 insertions(+), 9 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.