tests: pin the absolute macOS log path and the wevtutil argv shape
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-12 06:59:13
Commitd98b4cd3
Parentsc6c99184
Changed files
tests/run.sh+2−0■■
1 file+2−0
Diff
tests/run.sh+2−0■■
index 6281a98..da5757f 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -331,6 +331,8 @@ check_not "source has no ssh invocation" 'ssh ' "$SRCCAT"
331331 check_not "source has no sshpass" 'sshpass' "$SRCCAT"
332332 check_not "source never calls system()" 'system(' "$SRCCAT"
333333 check "journal argv is built with snprintf" 'journalctl -o json --no-pager' "$SRCCAT"
334+check "macOS log is called by absolute path" '/usr/bin/log show --style compact' "$SRCCAT"
335+check "wevtutil argv names the channel" 'wevtutil qe %s /c:%d /rd:true /f:text' "$SRCCAT"
334336 check "unit names are validated" 'valid_unit' "$SRCCAT"
335337 check "files are opened read-only" '"rb"' "$SRCCAT"
336338 check "tail reads are bounded" 'FILE_TAIL_BYTES' "$SRCCAT"
337339
tests/run.sh+2−0■■
index 6281a98..da5757f 100755index 6281a98..da5757f 100755
--- a/tests/run.sh--- a/tests/run.sh
+++ b/tests/run.sh+++ b/tests/run.sh
@@ -331,6 +331,8 @@ check_not "source has no ssh invocation" 'ssh ' "$SRCCAT"@@ -331,6 +331,8 @@ check_not "source has no ssh invocation" 'ssh ' "$SRCCAT"
331 check_not "source has no sshpass" 'sshpass' "$SRCCAT"331 check_not "source has no sshpass" 'sshpass' "$SRCCAT"
332 check_not "source never calls system()" 'system(' "$SRCCAT"332 check_not "source never calls system()" 'system(' "$SRCCAT"
333 check "journal argv is built with snprintf" 'journalctl -o json --no-pager' "$SRCCAT"333 check "journal argv is built with snprintf" 'journalctl -o json --no-pager' "$SRCCAT"
334+check "macOS log is called by absolute path" '/usr/bin/log show --style compact' "$SRCCAT"
335+check "wevtutil argv names the channel" 'wevtutil qe %s /c:%d /rd:true /f:text' "$SRCCAT"
334 check "unit names are validated" 'valid_unit' "$SRCCAT"336 check "unit names are validated" 'valid_unit' "$SRCCAT"
335 check "files are opened read-only" '"rb"' "$SRCCAT"337 check "files are opened read-only" '"rb"' "$SRCCAT"
336 check "tail reads are bounded" 'FILE_TAIL_BYTES' "$SRCCAT"338 check "tail reads are bounded" 'FILE_TAIL_BYTES' "$SRCCAT"
337339