diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-03-09 15:16:29 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-03-09 15:16:29 +0000 |
commit | b1cb46127e786555930aff2223a523922e23acbf (patch) | |
tree | 9585d407af8c31fd75aba381639e0fe0a7c3cbe1 /regress/usr.sbin/syslogd/args-dropped-sighup-filesystem.pl | |
parent | 459d4e795faae9e9a5825a299f7e5063446853a0 (diff) |
Kernel drops fewer messages in sendsyslog(2), adapt syslogd(8)
tests. Kernel stashes logs temporarily, test it. Fix some races
in existing tests.
Diffstat (limited to 'regress/usr.sbin/syslogd/args-dropped-sighup-filesystem.pl')
-rw-r--r-- | regress/usr.sbin/syslogd/args-dropped-sighup-filesystem.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/usr.sbin/syslogd/args-dropped-sighup-filesystem.pl b/regress/usr.sbin/syslogd/args-dropped-sighup-filesystem.pl index dd5fe098d1b..2a39b92b8d5 100644 --- a/regress/usr.sbin/syslogd/args-dropped-sighup-filesystem.pl +++ b/regress/usr.sbin/syslogd/args-dropped-sighup-filesystem.pl @@ -37,13 +37,14 @@ our %args = ( or die ref($self), " first log not in syslogd log"; undef $!; for (my $i = 0; $i < 100000; $i++) { - syswrite($big, "regress syslogd file system full\n", 33) + syswrite($big, "regress syslogd file system full\n") or last; } $!{ENOSPC} or die ref($self), " fill $fsbig failed: $!"; # a single message still fits, write 4 KB logs to reach next block write_lines($self, 100, 70); + write_lines($self, 9, 1); ${$self->{syslogd}}->loggrep(qr/write to file .* $errors/, 10) or die ref($self), " write to file error not in syslogd log"; close($big); |