]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Added basic support for unit testing
[wget] / src / main.c
index 0fc5b3d70b17412b34981e7e5c07efb7b051eaa4..fe9c8f33403ed0034b21f0eb0697f6988b430a91 100644 (file)
@@ -670,6 +670,7 @@ GNU General Public License for more details.\n"), stdout);
   exit (0);
 }
 \f
+#ifndef TESTING
 int
 main (int argc, char *const *argv)
 {
@@ -1007,6 +1008,7 @@ Can't timestamp and not clobber old files at the same time.\n"));
   else
     return 1;
 }
+#endif /* TESTING */
 \f
 #if defined(SIGHUP) || defined(SIGUSR1)