Skip to main content
Drupal is a registered trademark of Dries Buytaert
EOL Warning: Drupal 11.0 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.3 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.2 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.1 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.0 has reached end of life and no longer receives security updates. EOL Warning: Drupal 9.5 has reached end of life and no longer receives security updates. EOL Warning: Drupal 9.4 has reached end of life and no longer receives security updates. EOL Warning: Drupal 9.3 has reached end of life and no longer receives security updates. Release: Raven: Sentry Integration 7.5.2 Minor update available for module raven (7.5.2). Usage Milestone: jQuery UI Datepicker Module jquery_ui_datepicker crossed 1,000 active installs.

Race test

No security coverage
View on drupal.org

This module is a testing tool designed to simulate and identify race conditions. It can synchronize processes at specific points, like lock acquisitions or database queries, to intentionally create scenarios where one process wins a race, helping developers test failure cases.

The module allows automated testing of race conditions in a real world race scenario. It is for tests only.

This helper will re-run the command line it started with so it's recommended to test a single class only.

It synchronizes the parent and the child at a point of your choosing, makes the parent wait a little to ensure the child wins the race and then lets the parent continue making a test fail.

Currently a lock acquire or running a SELECT query is supported as sync points. To specify which one, the lock name / SELECT query can be matched against a PCRE pattern and an optional count can be specified too so the Nth match will be the sync point.

Currently only kernel tests have been tested but the main mechanism is ready for anything. Also, currently only Linux is supported, Mac OS X would be relatively easy to add.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 11 Apr 14, 2026