diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Servers/Tests/VersionInfoTests.cs | 9 | ||||
-rw-r--r-- | OpenSim/Framework/VersionInfo.cs | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs index 480f2bb..68a1c78 100644 --- a/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs +++ b/OpenSim/Framework/Servers/Tests/VersionInfoTests.cs | |||
@@ -41,14 +41,5 @@ namespace OpenSim.Framework.Servers.Tests | |||
41 | { | 41 | { |
42 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars."); | 42 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars."); |
43 | } | 43 | } |
44 | |||
45 | [Test] | ||
46 | public void TestGetVersionStringLength() | ||
47 | { | ||
48 | foreach (VersionInfo.Flavour flavour in Enum.GetValues(typeof(VersionInfo.Flavour))) | ||
49 | { | ||
50 | Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.GetVersionString("0.0.0", flavour).Length, "0.0.0/" + flavour + " failed"); | ||
51 | } | ||
52 | } | ||
53 | } | 44 | } |
54 | } | 45 | } |
diff --git a/OpenSim/Framework/VersionInfo.cs b/OpenSim/Framework/VersionInfo.cs index e8e746b..eac5aae 100644 --- a/OpenSim/Framework/VersionInfo.cs +++ b/OpenSim/Framework/VersionInfo.cs | |||
@@ -57,7 +57,7 @@ namespace OpenSim | |||
57 | return versionString.PadRight(VERSIONINFO_VERSION_LENGTH); | 57 | return versionString.PadRight(VERSIONINFO_VERSION_LENGTH); |
58 | } | 58 | } |
59 | 59 | ||
60 | public const int VERSIONINFO_VERSION_LENGTH = 30; | 60 | public const int VERSIONINFO_VERSION_LENGTH = 27; |
61 | 61 | ||
62 | /// <value> | 62 | /// <value> |
63 | /// This is the external interface version. It is separate from the OpenSimulator project version. | 63 | /// This is the external interface version. It is separate from the OpenSimulator project version. |