[Piglit] [PATCH 4/4] arb_copy_buffer-subdata-sync: print expected values when there's a failure
Brian Paul
brianp at vmware.com
Tue Jun 21 22:44:34 UTC 2016
---
tests/spec/arb_copy_buffer/subdata-sync.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/spec/arb_copy_buffer/subdata-sync.c b/tests/spec/arb_copy_buffer/subdata-sync.c
index e8e4740..38a3c6a 100644
--- a/tests/spec/arb_copy_buffer/subdata-sync.c
+++ b/tests/spec/arb_copy_buffer/subdata-sync.c
@@ -77,6 +77,9 @@ piglit_init(int argc, char *argv[])
fprintf(stderr, "found 0x%08x 0x%08x 0x%08x 0x%08x\n",
result_data[0], result_data[1],
result_data[2], result_data[3]);
+ fprintf(stderr, "expected 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ good_data[0], good_data[1],
+ good_data[2], good_data[3]);
pass = false;
}
piglit_report_subtest_result(subtest_pass ? PIGLIT_PASS : PIGLIT_FAIL,
@@ -97,6 +100,9 @@ piglit_init(int argc, char *argv[])
fprintf(stderr, "found 0x%08x 0x%08x 0x%08x 0x%08x\n",
result_data[0], result_data[1],
result_data[2], result_data[3]);
+ fprintf(stderr, "expected 0x%08x 0x%08x 0x%08x 0x%08x\n",
+ good_data[0], good_data[1],
+ good_data[2], good_data[3]);
pass = false;
}
piglit_report_subtest_result(subtest_pass ? PIGLIT_PASS : PIGLIT_FAIL,
--
1.9.1
More information about the Piglit
mailing list