]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/traceframework.git/blobdiff - test/TFUnitTest/src/tests/testUiaMInst.c
bug fixes along with big endian support (DSP only) added
[keystone-rtos/traceframework.git] / test / TFUnitTest / src / tests / testUiaMInst.c
index daa0f9f958023dafcfa6721e17e5f4457334959d..d44d7f184147aeee61280d3d4a5eeb091fb632f4 100644 (file)
@@ -77,6 +77,7 @@ tfTest_t  tfTestList[] = {
        { NULL,                                  NULL,                                           UTF_TEST_NOT_RUN }\r
 };\r
 \r
+#define TFU_NUM_TESTS       ((sizeof(tfTestList)/sizeof(tfTest_t)) - 1)\r
 \r
 typedef struct test_contracts_s\r
 {\r
@@ -150,7 +151,7 @@ static void produce_consume_buffers (unitTestFramework_t* tf, tfTest_t *tft, cha
     } while (active);\r
 \r
     /* post message that consumer is done on the master core */\r
-    utlWriteSyncValue(SYNC_TOKEN_POST_CONSUMER_DONE);\r
+    utlWriteSyncValue(SYNC_TOKEN_POST_CONSUMER_DONE, coreId);\r
 \r
        /* delete the all of the local producer tasks */\r
        /* stop notifying consumers */\r
@@ -173,7 +174,7 @@ static void produce_consume_buffers (unitTestFramework_t* tf, tfTest_t *tft, cha
        testCommonSummarizeAllTestStatus (tft, testName, tf_num_consumers, UTF_NUM_BUFS_CONSUMED, contract_verId);\r
 \r
     /* Publish prodcuer core (master) is complete */\r
-       utlWriteSyncValue(SYNC_TOKEN_MASTER_UNITTEST_DONE);\r
+       utlWriteSyncValue(SYNC_TOKEN_MASTER_UNITTEST_DONE, coreId);\r
 \r
        return;\r
  }\r
@@ -209,7 +210,7 @@ static void consume_buffers(unitTestFramework_t* tf, tfTest_t *tft, tf_contract_
 #endif\r
        testCommonPublishSummaryFromConsumer(tf, tft, coreId, contract_verId);\r
 \r
-       utlWriteSyncValue(SYNC_TOKEN_POST_CONSUMER_DONE);\r
+       utlWriteSyncValue(SYNC_TOKEN_POST_CONSUMER_DONE, coreId);\r
 \r
     utlWaitUntilMasterTestComplete(test_ref_count);\r
 \r
@@ -236,6 +237,7 @@ void tfTestUiaMInstProducerUiaConsumers (UArg a0, UArg a1)
        int                  i;\r
        \r
        tft->testStatus = UTF_TEST_PASSED;\r
+  tf->numTests    = TFU_NUM_TESTS;\r
 \r
     /* get the core ID */\r
 #ifdef __LINUX_USER_SPACE\r