Testsuite: check for conflicting host name
[exim.git] / test / runtest
index 76e1177c56c214ba7c47e819c14aa090a32e20f8..d4cf9f90e5e6fda4085a513776afc5faf3fdf349 100755 (executable)
@@ -3385,6 +3385,12 @@ if ($parm_hostname =~ /[[:upper:]]/)
   print "\n*** Host name has upper case characters: this may cause problems ***\n\n";
   }
 
+if ($parm_hostname =~ /\.example\.com$/)
+  {
+  die "\n*** Host name ends in .example.com; this conflicts with the testsuite use of that domain.\n"
+       . "    Please change the host's name (or comment out this check, and fail several testcases)\n";
+  }
+
 
 
 ##################################################