Skip to content

Commit 0a8d63c

Browse files
committed
Bash scripting is the worst.
1 parent 3b0656c commit 0a8d63c

2 files changed

Lines changed: 3 additions & 22 deletions

File tree

.github/workflows/ccpp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ jobs:
150150

151151
- name: Ensure expected atexit registrations
152152
shell: bash
153-
run: $GITHUB_WORKSPACE/Scripts/CountInstancesOfAtExit.py ${{runner.workspace}}/build/Bin/FEX "__cxa_atexit@plt>$" 1 ; echo $?
153+
run: |
154+
COUNT=$(llvm-objdump -D build/Bin/FEX | grep '__cxa_atexit@plt>\\$' | wc -l)
155+
[ "$COUNT" -eq 1 ] || { echo "Expected 1 atexit handlers, found $COUNT"; exit 1; }
154156
155157
- name: Remove old SHM regions
156158
if: ${{ always() }}

Scripts/CountInstancesOfAtExit.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)