2007-09-02 00:52:40 +02:00
|
|
|
|
|
|
|
|
TESTING "Locking" ./test-locking
|
|
|
|
|
|
|
|
|
|
TEST "condition not unlocked asserts" conditionforgotunlock <<END
|
|
|
|
|
return: 134
|
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
|
2007-09-02 17:52:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-09 09:33:14 +02:00
|
|
|
TEST "mutex section" mutexsection <<END
|
|
|
|
|
out: mutex locked section 1
|
|
|
|
|
out: mutex locked section 2
|
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
|
2007-09-02 17:52:30 +02:00
|
|
|
TEST "mutex not unlocked asserts" mutexforgotunlock <<END
|
|
|
|
|
return: 134
|
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
|
2008-08-09 09:33:14 +02:00
|
|
|
TEST "nested mutex section" nestedmutexsection <<END
|
|
|
|
|
out: outer mutex locked section
|
|
|
|
|
out: inner mutex locked section
|
|
|
|
|
END
|