#!/bin/sh
# DF-0731 harness runner. Builds + runs both buggy and fixed variants.
# (set -e is intentionally NOT used: the buggy variant is expected to exit 1)
echo "===== BUGGY (matches master ieee80211_rssadapt.c:322-338) ====="
sh build.sh buggy
./df0731_harness
echo "BUGGY_EXIT=$?"
echo
echo "===== FIXED (NULL-check guard, models fix.diff) ====="
sh build.sh fixed
./df0731_harness
echo "FIXED_EXIT=$?"
