forked from samba-team/samba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ctdb-scripts: Dump stack traces of smbd processes after shutdown
If any processes remain then they may be stuck in D state and this might tell us why. Update tests: tweak pidof stub, add support for smbd stack traces and add some new tests for the shutdown event. Signed-off-by: Martin Schwenke <[email protected]> Reviewed-by: Amitay Isaacs <[email protected]> Autobuild-User(master): Amitay Isaacs <[email protected]> Autobuild-Date(master): Mon Oct 10 12:54:24 CEST 2016 on sn-devel-144
- Loading branch information
1 parent
b3d938c
commit 72e415b
Showing
5 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
. "${TEST_SCRIPTS_DIR}/unit.sh" | ||
|
||
define_test "shutdown, simple" | ||
|
||
setup_samba | ||
|
||
ok <<EOF | ||
Stopping smb: OK | ||
EOF | ||
simple_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
. "${TEST_SCRIPTS_DIR}/unit.sh" | ||
|
||
define_test "shutdown, simple" | ||
|
||
setup_samba | ||
|
||
samba_setup_fake_threads 1 2 3 4 5 6 | ||
|
||
ok <<EOF | ||
Stopping smb: OK | ||
$SAMBA_STACK_TRACES | ||
EOF | ||
simple_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters