Opened 3 years ago

Last modified 2 years ago

#20061 new defect

When unit testing in Tor2web mode, set the config correctly

Reported by: teor Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor2web, easy, intro, testing, unit-tests
Cc: Actual Points:
Parent ID: Points: 0.5
Reviewer: Sponsor:

Description

When I compile with --enable-tor2web-mode, then run the unit tests, I get the following error:

$ make test
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
./src/test/test
Sep 05 15:34:15.560 [err] This copy of Tor was compiled to run in 'tor2web mode'. It can only be run with the Tor2webMode torrc option enabled.
Sep 05 15:34:15.561 [err] set_options(): Bug: Acting on config options left us in a broken state. Dying. (on Tor 0.2.9.2-alpha-dev )
make: *** [test] Error 1

In the unit test harness, we should set options->Tor2webMode when compiled in Tor2web mode.

Child Tickets

Change History (4)

comment:1 Changed 3 years ago by teor

Milestone: Tor: 0.2.???Tor: 0.3.???

Milestone renamed

comment:2 Changed 3 years ago by nickm

Keywords: tor-03-unspecified-201612 added
Milestone: Tor: 0.3.???Tor: unspecified

Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.

comment:3 Changed 2 years ago by nickm

Keywords: tor-03-unspecified-201612 removed

Remove an old triaging keyword.

comment:4 Changed 2 years ago by nickm

Keywords: testing unit-tests added
Note: See TracTickets for help on using tickets.