X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fkernel%2Fvalidate_select_poll_epoll.py;h=613cec3ab3480b53ed6d6a6f03a939ad8fdacf08;hp=f4946e73a94fb9b11432930cac49903a705c8aee;hb=8b3b99e2870d53c97f9ec9a976ed91f43da5f02b;hpb=1bd2622876ce0babd28a28be8699259116552b98 diff --git a/tests/regression/kernel/validate_select_poll_epoll.py b/tests/regression/kernel/validate_select_poll_epoll.py index f4946e73a..613cec3ab 100755 --- a/tests/regression/kernel/validate_select_poll_epoll.py +++ b/tests/regression/kernel/validate_select_poll_epoll.py @@ -450,8 +450,8 @@ class Test2(TraceParser): class Test3(TraceParser): def __init__(self, trace, pid): super().__init__(trace, pid) - self.expect["select_too_big_in"] = 0 - self.expect["select_too_big_out"] = 0 + self.expect["select_invalid_fd_in"] = 0 + self.expect["select_invalid_fd_out"] = 0 def select_entry(self, event): timestamp = event.timestamp @@ -466,9 +466,8 @@ class Test3(TraceParser): _exceptfds_length = event["_exceptfds_length"] exceptfds = event["exceptfds"] - # make sure an invalid value still produces a valid event - if n == 2048 and overflow == 0 and _readfds_length == 0: - self.expect["select_too_big_in"] = 1 + if n > 0 and overflow == 0: + self.expect["select_invalid_fd_in"] = 1 def select_exit(self, event): timestamp = event.timestamp @@ -483,9 +482,9 @@ class Test3(TraceParser): _exceptfds_length = event["_exceptfds_length"] exceptfds = event["exceptfds"] - # make sure an invalid value still produces a valid event + # make sure the event has a ret field equal to -EBADF if ret == -9 and overflow == 0 and _readfds_length == 0: - self.expect["select_too_big_out"] = 1 + self.expect["select_invalid_fd_out"] = 1 class Test4(TraceParser):