Skip to content

Commit

Permalink
tests/amcast_joinpart: fix the test to support "interpreted" output
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
pcmoore committed Sep 5, 2024
1 parent 343a146 commit a1c276e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/amcast_joinpart/test
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ my $found_event_listener_disconnect = 0;

while ( $line = <$fh_out> ) {
if ( $line =~ /^type=(EVENT_LISTENER|UNKNOWN\[1335\]) / ) {
if ( $line =~ / nl-mcgrp=1 op=((dis|)connect) res=(yes|no)/ ) {
if ( $line =~ / nl-mcgrp=(audit-netlink-multicast|1) /) {
$found_event_listener = 1;
if ( $1 eq "connect" ) {
if ( $line =~ / op=connect / ) {
$found_event_listener_connect = 1;
}
if ( $1 eq "disconnect" ) {
if ( $line =~ / op=disconnect / ) {
$found_event_listener_disconnect = 1;
}
}
Expand Down

0 comments on commit a1c276e

Please sign in to comment.