function system_test_lock_acquire in SimpleTest 7
Try to acquire a named lock and report the outcome.
2 string references to 'system_test_lock_acquire'
- LockFunctionalTest::testLockAcquire in tests/
lock.test - Confirm that we can acquire and release locks in two parallel requests.
- system_test_menu in tests/
system_test.module - Implement hook_menu().
File
- tests/
system_test.module, line 226
Code
function system_test_lock_acquire() {
if (lock_acquire('system_test_lock_acquire')) {
lock_release('system_test_lock_acquire');
return 'TRUE: Lock successfully acquired in system_test_lock_acquire()';
}
else {
return 'FALSE: Lock not acquired in system_test_lock_acquire()';
}
}