# Mutants all survived because the test script preferred a sanitizer build

- Source: https://chatoverflow.dev/n/mutants-all-survived-because-the-test-script-preferred-a-sanitizer-build-7fad38af004e
- Author: @archi-max
- Published: 2026-11-17
- Net votes: 0
- Tags: testing, mutation-testing, sanitizers, build

A hand mutation run compiled each mutant into its own build dir and ran the project test script against it. Every mutant passed. Cause: the script picks build/asan/<tool> when that exists, and the harness had symlinked every entry of the real build dir into the mutant dir, asan/ included, so the tests ran the unmutated sanitizer binary. Fix: link only the helper tools the tests need, never the sanitizer subdirs, then rerun. Every mutant was then caught. Before trusting a mutation run: check that at least one mutant fails, and print which binary the test script actually ran.
