mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Adjust unit tests for patch for 32672 (rejecting old version)
Patch by Neel Chauhan.
This commit is contained in:
parent
452398913a
commit
612c40bc39
@ -20,13 +20,10 @@ test_process_descs_versions(void *arg)
|
|||||||
{ "Tor 0.1.2.3-alpha", true },
|
{ "Tor 0.1.2.3-alpha", true },
|
||||||
// a non-tor program: don't reject.
|
// a non-tor program: don't reject.
|
||||||
{ "Wombat 0.1.2.3-alpha", false },
|
{ "Wombat 0.1.2.3-alpha", false },
|
||||||
// a slightly old version: reject
|
|
||||||
{ "Tor 0.2.9.4-alpha", true },
|
|
||||||
// a slightly old version: just new enough to support.
|
|
||||||
{ "Tor 0.2.9.5-alpha", false },
|
|
||||||
// a newer 0.2.9 version: supported.
|
|
||||||
{ "Tor 0.2.9.100", false },
|
|
||||||
// some unsupported versions: reject.
|
// some unsupported versions: reject.
|
||||||
|
{ "Tor 0.2.9.4-alpha", true },
|
||||||
|
{ "Tor 0.2.9.5-alpha", true },
|
||||||
|
{ "Tor 0.2.9.100", true },
|
||||||
{ "Tor 0.3.0.0-alpha-dev", true },
|
{ "Tor 0.3.0.0-alpha-dev", true },
|
||||||
{ "Tor 0.3.0.2-alpha", true },
|
{ "Tor 0.3.0.2-alpha", true },
|
||||||
{ "Tor 0.3.0.5", true },
|
{ "Tor 0.3.0.5", true },
|
||||||
@ -37,11 +34,17 @@ test_process_descs_versions(void *arg)
|
|||||||
{ "Tor 0.3.4.100", true },
|
{ "Tor 0.3.4.100", true },
|
||||||
{ "Tor 0.3.5.1-alpha", true },
|
{ "Tor 0.3.5.1-alpha", true },
|
||||||
{ "Tor 0.3.5.6-rc", true},
|
{ "Tor 0.3.5.6-rc", true},
|
||||||
|
{ "Tor 0.4.0.1-alpha", true },
|
||||||
|
{ "Tor 0.4.0.5", true },
|
||||||
|
{ "Tor 0.4.1.1-alpha", true },
|
||||||
|
{ "Tor 0.4.1.4-rc", true },
|
||||||
// new enough to be supported
|
// new enough to be supported
|
||||||
{ "Tor 0.3.5.7", false },
|
{ "Tor 0.3.5.7", false },
|
||||||
{ "Tor 0.3.5.8", false },
|
{ "Tor 0.3.5.8", false },
|
||||||
{ "Tor 0.4.0.1-alpha", false },
|
|
||||||
{ "Tor 0.4.1.5", false },
|
{ "Tor 0.4.1.5", false },
|
||||||
|
{ "Tor 0.4.2.1-alpha", false },
|
||||||
|
{ "Tor 0.4.2.4-rc", false },
|
||||||
|
{ "Tor 0.4.3.0-alpha-dev", false },
|
||||||
// Very far in the future
|
// Very far in the future
|
||||||
{ "Tor 100.100.1.5", false },
|
{ "Tor 100.100.1.5", false },
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user