Utest: Add check for utest multithread run

Submitted by Pan Xiuli on July 18, 2016, 7:08 a.m.

Details

Message ID 1468825723-24732-1-git-send-email-xiuli.pan@intel.com
State New
Headers show
Series "Utest: Add check for utest multithread run" ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Pan Xiuli July 18, 2016, 7:08 a.m.
From: Pan Xiuli <xiuli.pan@intel.com>

Now utest has some test case with issues, utest multithread run should
also ignore them.

Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
---
 utests/utest.cpp | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/utests/utest.cpp b/utests/utest.cpp
index 6d25db1..dac6c28 100644
--- a/utests/utest.cpp
+++ b/utests/utest.cpp
@@ -127,6 +127,7 @@  void *multithread(void * arg)
     sem_post(&tag);
 
     const  UTest &utest = (*UTest::utestList)[SerialNumber];
+    if (utest.fn == NULL || utest.haveIssue || utest.isBenchMark) continue;
    // printf("thread%lu  %d, utests.name is %s\n",PhtreadNumber, SerialNumber,utest.name);
 
     UTest::do_run(utest);