[Piglit] [PATCH 01/13] util: add PIGLIT_CRASH to the list of valid results.
Kenney Phillis
kphillisjr at gmail.com
Thu Oct 31 15:47:57 CET 2013
Add Crash to the list of reports possible for programs using the piglit
utility library.
---
tests/util/piglit-util.c | 5 +++++
tests/util/piglit-util.h | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index 9b7a351..b529279 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -170,6 +170,7 @@ piglit_result_to_string(enum piglit_result result)
case PIGLIT_SKIP: return "skip";
case PIGLIT_WARN: return "warn";
case PIGLIT_PASS: return "pass";
+ case PIGLIT_CRASH: return "crash";
}
return "Unknown result";
}
@@ -185,6 +186,7 @@ piglit_report_result(enum piglit_result result)
fflush(stdout);
switch(result) {
+ case PIGLIT_CRASH:
case PIGLIT_PASS:
case PIGLIT_SKIP:
case PIGLIT_WARN:
@@ -275,6 +277,9 @@ void
piglit_merge_result(enum piglit_result *all, enum piglit_result subtest)
{
switch (subtest) {
+ case PIGLIT_CRASH:
+ *all = PIGLIT_CRASH;
+ break;
case PIGLIT_FAIL:
*all = PIGLIT_FAIL;
break;
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index f9bde74..f9f70f3 100644
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -100,7 +100,8 @@ enum piglit_result {
PIGLIT_PASS,
PIGLIT_FAIL,
PIGLIT_SKIP,
- PIGLIT_WARN
+ PIGLIT_WARN,
+ PIGLIT_CRASH
};
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
--
1.7.9.5
More information about the Piglit
mailing list