mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-25 04:43:31 +01:00
cacf326e78
When I wrote the first one of these, it needed the path of the geoip file. But that doesn't translate well in at least two cases: - Mingw, where the compile-time path is /c/foo/bar and the run-time path is c:\foo\bar. - Various CI weirdnesses, where we cross-compile a test binary, then copy it into limbo and expect it to work. Together, these problems precluded these tests running on windows. So, instead let's just generate some minimal files ourselves, and test against them. Fixes bug 25787
8 lines
436 B
Plaintext
8 lines
436 B
Plaintext
o Minor bugfixes (testing):
|
|
- Instead of trying to read the geoip configuration files from within the
|
|
unit tests, instead create our own ersatz files with just enough
|
|
geoip data in the format we expect. Trying to read from the source
|
|
directory created problems on Windows with mingw, where the
|
|
build system's paths are not the same as the platform's paths.
|
|
Fixes bug 25787; bugfix on 0.3.4.1-alpha.
|