[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add a test for a command-line option without a value.



commit 763d955a17ba6c6c6e5487357c672b0cae3d607c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Oct 8 15:58:14 2019 -0400

    Add a test for a command-line option without a value.
---
 src/test/conf_examples/missing_cl_arg/cmdline | 1 +
 src/test/conf_examples/missing_cl_arg/error   | 1 +
 src/test/conf_examples/missing_cl_arg/torrc   | 0
 3 files changed, 2 insertions(+)

diff --git a/src/test/conf_examples/missing_cl_arg/cmdline b/src/test/conf_examples/missing_cl_arg/cmdline
new file mode 100644
index 000000000..7fc4d0a54
--- /dev/null
+++ b/src/test/conf_examples/missing_cl_arg/cmdline
@@ -0,0 +1 @@
+--hash-password
diff --git a/src/test/conf_examples/missing_cl_arg/error b/src/test/conf_examples/missing_cl_arg/error
new file mode 100644
index 000000000..61dbeac8a
--- /dev/null
+++ b/src/test/conf_examples/missing_cl_arg/error
@@ -0,0 +1 @@
+Command-line option '--hash-password' with no value.
diff --git a/src/test/conf_examples/missing_cl_arg/torrc b/src/test/conf_examples/missing_cl_arg/torrc
new file mode 100644
index 000000000..e69de29bb



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits