Skip to content

test: check the log-file symlink victim, not a polled syslog - #8350

Merged
oferchen merged 1 commit into
masterfrom
test/operator-path-syslog-no-poll
Nov 14, 2026
Merged

oferchen merged 1 commit into
masterfrom
test/operator-path-syslog-no-poll

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

daemon_operator_path_symlinks polled journald for up to 5 s to see the log file refusal reach syslog. 3.5.1's own tests for this case (testsuite/log-file-symlink_test.py, operator-path-log-file_test.py) only check that the victim file is untouched; nothing in the 3.5.1 testsuite reads syslog. The test now checks what upstream checks: the victim is unchanged, the planted symlink is left alone, and the daemon keeps serving (log.c:169, :175-182). The two fallback lines and their order are already pinned by the unit test log_file_open_failure_falls_back_to_syslog.

Also drops the Duration, Instant import that #8254 left unused. Stacked on #8254.

Tests

  • Run as root, the file's 6 tests pass.
  • Mutation: when the daemon log open follows symlinks, the victim assertion fails.

@oferchen
oferchen force-pushed the test/operator-path-syslog-no-poll branch 3 times, most recently from 22c28de to 50ea628 Compare November 13, 2026 16:16
@oferchen
oferchen force-pushed the test/operator-path-syslog-no-poll branch from 50ea628 to 8ee9a57 Compare November 14, 2026 10:29
@oferchen
oferchen merged commit d3ced46 into master Nov 14, 2026
86 checks passed
@oferchen
oferchen deleted the test/operator-path-syslog-no-poll branch November 14, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant