summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}