nancy.liao
2025-05-29 8d405b265285c368df2e9cf1c14acee7532e0ee7
test/library/os/dmi_info_test.cpp
@@ -5,20 +5,16 @@
#include <boost/test/unit_test.hpp>
#include "../../../src/library/os/dmi_info.hpp"
namespace license {
namespace test {
using namespace std;
BOOST_AUTO_TEST_CASE(dmi_info) {
   os::DmiInfo dmiInfo;
//windows bug
#ifdef __unix__
   BOOST_CHECK_MESSAGE(dmiInfo.bios_vendor().size()>0, "Bios vendor OK");
   BOOST_CHECK_MESSAGE(dmiInfo.bios_description().size() > 0, "Bios description OK");
   BOOST_CHECK_MESSAGE(dmiInfo.sys_vendor().size() > 0, "Sys vendor OK");
#endif
   BOOST_CHECK_MESSAGE(dmiInfo.bios_vendor().size() > 0, "Bios vendor length >0");
   BOOST_CHECK_MESSAGE(dmiInfo.bios_description().size() > 0, "Bios description length >0");
   BOOST_CHECK_MESSAGE(dmiInfo.sys_vendor().size() > 0, "Sys vendor length >0");
}
}  // namespace test