#!/bin/bash

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