summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-08-26 23:22:27 +0000
committerNick Mathewson <nickm@torproject.org>2005-08-26 23:22:27 +0000
commit26d2301c765799e4d41dc437996f3d26ba506482 (patch)
treec658e1c7d97c82dd8bdab7f407f6a60aa5279159 /src/or/test.c
parentcd2bb915edd42715055b375b26aa6cf9a89f281f (diff)
downloadtor-26d2301c765799e4d41dc437996f3d26ba506482.tar.gz
tor-26d2301c765799e4d41dc437996f3d26ba506482.zip
Make unit tests (and others) run without launching listeners, creating subdirectories, and so on.
svn:r4876
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 4a91399a28..067cb9c6c1 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -114,7 +114,8 @@ remove_directory(void)
/* Only "." and ".." start with ., since we don't create any dotfiles. */
if (de->d_name[0] == '.') continue;
if (unlink(get_fname(de->d_name))) {
- perror("Error removing file");
+ printf("Couldn't remove temprorary file \"%s/%s\"",temp_dir,de->d_name);
+ perror("");
}
#if 0
printf("==%s\n", de->d_name);
@@ -1522,6 +1523,7 @@ int
main(int c, char**v)
{
or_options_t *options = options_new();
+ options->command = CMD_RUN_UNITTESTS;
network_init();
setup_directory();
options_init(options);