From 90730f0d3c14b0143d33e02aea9026301a64ed3c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 29 May 2022 02:01:21 -0400 Subject: [PATCH] update windows version history --- src/platform.cpp | 6 ++++++ unittest/python/python-capabilities.py | 1 + 2 files changed, 7 insertions(+) diff --git a/src/platform.cpp b/src/platform.cpp index 5e396d3f63..667481b94d 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -195,6 +195,8 @@ std::string platform::os_info() if (build == "6002") { buf = "Windows Vista"; + } else if (build == "6003") { + buf = "Windows Server 2008"; } else if (build == "7601") { buf = "Windows 7"; } else if (build == "9200") { @@ -227,8 +229,12 @@ std::string platform::os_info() buf = "Windows 10 21H1"; } else if (build == "19044") { buf = "Windows 10 21H2"; + } else if (build == "20348") { + buf = "Windows Server 2022"; } else if (build == "22000") { buf = "Windows 11 21H2"; + } else if (build == "22621") { + buf = "Windows 11 22H2"; } else { const char *entry = "ProductName"; RegGetValue(HKEY_LOCAL_MACHINE, subkey, entry, RRF_RT_REG_SZ, nullptr, &value, diff --git a/unittest/python/python-capabilities.py b/unittest/python/python-capabilities.py index 4c14cac37d..3ac66ebdc6 100644 --- a/unittest/python/python-capabilities.py +++ b/unittest/python/python-capabilities.py @@ -38,6 +38,7 @@ class PythonCapabilities(unittest.TestCase): system = platform.system() osinfo = self.lmp.get_os_info() + print("System: %s LAMMPS OS Info: %s" % (system, osinfo)) self.assertEqual(osinfo.find(system),0) def test_has_gzip_support(self):