Browse Source

Add a few error test cases

Nick Mathewson 4 years ago
parent
commit
617679df42

+ 1 - 0
src/test/conf_examples/badnick_1/error

@@ -0,0 +1 @@
+nicknames must be between 1 and 19 characters inclusive

+ 2 - 0
src/test/conf_examples/badnick_1/torrc

@@ -0,0 +1,2 @@
+# This nickname is too long; we won't accept it.
+Nickname TooManyCharactersInThisNickname

+ 1 - 0
src/test/conf_examples/badnick_2/error

@@ -0,0 +1 @@
+must contain only the characters \[a-zA-Z0-9\]

+ 2 - 0
src/test/conf_examples/badnick_2/torrc

@@ -0,0 +1,2 @@
+# this nickname has spaces in it and won't work.
+Nickname has a space

+ 1 - 0
src/test/conf_examples/contactinfo_notutf8/error

@@ -0,0 +1 @@
+ContactInfo config option must be UTF-8

+ 1 - 0
src/test/conf_examples/contactinfo_notutf8/torrc

@@ -0,0 +1 @@
+ContactInfo ÄëÄëÄë@example.com

+ 1 - 0
src/test/conf_examples/relpath_rad/error

@@ -0,0 +1 @@
+RunAsDaemon is not compatible with relative paths.

+ 4 - 0
src/test/conf_examples/relpath_rad/torrc

@@ -0,0 +1,4 @@
+
+# Relative-path data directories are incompatible with RunAsDaemon
+DataDirectory ./datadir
+RunAsDaemon 1