#!/bin/bash

# This test is designed to run the wrapper script against a target that is known
# to fail a check.
result=$(ci/runners/tsan.sh ci/runners/threading_test 2>&1)
echo $result
# Ensure we see Memcheck in the output.
if [[ $result = *"ThreadSanitizer"* ]]; then
  exit 0
else
  echo Output missing
  echo $result
  exit 1
fi
