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