aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-09-28 21:14:40 +0000
committerRoger Dingledine <arma@torproject.org>2004-09-28 21:14:40 +0000
commitd381aa46960f6ea5db2a29d6abd0d30d34c23b46 (patch)
treea2b75d9e0307312e84a52449dc317b35d6f13285 /src/or/test.c
parent25beea22bf6dfb2e5fa2c9688144935543dff172 (diff)
downloadtor-d381aa46960f6ea5db2a29d6abd0d30d34c23b46.tar
tor-d381aa46960f6ea5db2a29d6abd0d30d34c23b46.tar.gz
Fix an evil bug: when we failed to write to our log, fputs()
gave us a sigpipe, and we logged that we were ignoring it, causing us to fail to log that, and delete the log entry. Then when the signal handler exited, we proceeded to delete the log entry that had already been deleted. Now we make sure to only log inside our signal handler if we'll be exit()ing right after. svn:r2388
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 0ee815227..f09399144 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1024,7 +1024,6 @@ test_dir_format()
test_eq(0, is_obsolete_version("0.0.5.1-cvs", "0.0.5"));
test_eq(0, tor_version_as_new_as("Tor 0.0.5", "0.0.9pre1-cvs"));
- test_eq(0, tor_version_as_new_as("Tor 0.0.5", "0.0.9pre1-cvs"));
test_eq(1, tor_version_as_new_as(
"Tor 0.0.8 on Darwin 64-121-192-100.c3-0.sfpo-ubr1.sfrn-sfpo.ca.cable.rcn.com Power Macintosh", "0.0.8rc2"));
test_eq(0, tor_version_as_new_as(