Add SharedLogState for synchronized value data and factories for independently owned appender state and captured formatter closures. Reject unsafe configuration state, update the test collector to value snapshots, and document the breaking APIs in version 3.0.0. Expand ORC ownership and sanitizer coverage and reject stale test executables.
17 lines
539 B
Bash
17 lines
539 B
Bash
#!/usr/bin/env bash
|
|
set -u
|
|
|
|
binary=${1:?Expected the ThreadSanitizer test executable}
|
|
result=0
|
|
for scenario in independent service service-lifetime service-reconfigure custom-state formatter shared-state-lifetime factory-state collector formatter-lifetime timestamp allocator; do
|
|
echo "ThreadSanitizer scenario: $scenario"
|
|
if TSAN_OPTIONS=halt_on_error=1:exitcode=66 timeout 30s "$binary" "$scenario"; then
|
|
echo "PASS: $scenario"
|
|
else
|
|
code=$?
|
|
echo "FAIL: $scenario (exit $code)" >&2
|
|
result=1
|
|
fi
|
|
done
|
|
exit "$result"
|