chiark / gitweb /
Regression test doesn't rely on value of O_NONBLOCK.
[adns] / regress / fcntl-change.pl
CommitLineData
73c4c523 1s/^( fcntl fd=\d+ cmd=F_SETFL) 2050$/$1 O_NONBLOCK\|\.\.\./;
2if ($last =~ m/^ fcntl fd=\d+ cmd=F_GETFL$/) {
3 s/^ fcntl=2$/ fcntl\=\~O_NONBLOCK\&.../;
4}
5if ($last =~ m/^ fcntl fd=\d+ cmd=F_SETFL /) {
6 s/^ fcntl=0$/ fcntl\=OK/;
7}
8$last=$_;