diff packages/kernel/current/tests/tm_basic.cxx @ 38:e7ba79f6d3a8 ecos-sw-1999-09-23

Merge from eCos master repository on 1999-09-23-20:10:25-BST
author jlarmour
date Thu, 23 Sep 1999 19:52:27 +0000
parents 29bc183297e1
children 755351606154
line wrap: on
line diff
--- a/packages/kernel/current/tests/tm_basic.cxx
+++ b/packages/kernel/current/tests/tm_basic.cxx
@@ -744,6 +744,11 @@ run_mutex_tests(void)
     }
     show_times(mutex_ft, nmutexes, "Trylock [locked] mutex");
 
+    // Must unlock mutices before destroying them.
+    for (i = 0;  i < nmutexes;  i++) {
+        cyg_mutex_unlock(&test_mutexes[i]);
+    }
+
     wait_for_tick(); // Wait until the next clock tick to minimize aberations
     for (i = 0;  i < nmutexes;  i++) {
         HAL_CLOCK_READ(&mutex_ft[i].start);