Skip to content

Commit

Permalink
Disable timeout signal before going to next test in perform and netlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Jan 1, 2024
1 parent 4753412 commit 7a504c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion netlink.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl

# Copyright (c) 2022 Moritz Buhl <[email protected]>
# Copyright (c) 2018-2023 Alexander Bluhm <[email protected]>
# Copyright (c) 2018-2024 Alexander Bluhm <[email protected]>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -195,6 +195,8 @@ sub bad {
$log->sync() if $log;
$tr->sync();
no warnings 'exiting';
alarm(0);
# the local and eval around the signal handler behave unexpectedly
next TEST;
}

Expand Down
4 changes: 3 additions & 1 deletion perform.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/perl

# Copyright (c) 2018-2023 Alexander Bluhm <[email protected]>
# Copyright (c) 2018-2024 Alexander Bluhm <[email protected]>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -159,6 +159,8 @@ sub bad {
$log->sync() if $log;
$tr->sync();
no warnings 'exiting';
# the local and eval around the signal handler behave unexpectedly
alarm(0);
next TEST;
}

Expand Down

0 comments on commit 7a504c1

Please sign in to comment.