summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-11 18:00:24 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-11 18:48:05 +0100
commit13bb9e7046ac253980d3aefafb3de88b0379bdb7 (patch)
tree7e49430fe4fae2896fac44291548a3fff84ebb24 /source4/torture
parent1f5f4e912d6600b3fd759ce010ac226828e7bf89 (diff)
downloadsamba-13bb9e7046ac253980d3aefafb3de88b0379bdb7.tar.gz
samba-13bb9e7046ac253980d3aefafb3de88b0379bdb7.tar.bz2
samba-13bb9e7046ac253980d3aefafb3de88b0379bdb7.zip
smbtorture: Default to listing all tests if no prefix was specified.
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smbtorture.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index 49d9b1887d..cfa8b0f87d 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -633,8 +633,12 @@ int main(int argc,char *argv[])
}
if (list_tests) {
- for (i=1;i<argc_new;i++) {
- print_test_list(torture_root, NULL, argv_new[i]);
+ if (argc_new == 1) {
+ print_test_list(torture_root, NULL, "");
+ } else {
+ for (i=1;i<argc_new;i++) {
+ print_test_list(torture_root, NULL, argv_new[i]);
+ }
}
return 0;
}