mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Tests: do not print warnings
This commit is contained in:
parent
7b87858dc2
commit
48f82ab05a
2 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,8 @@ libcpuid_warn_fn_t _warn_fun = default_warn;
|
|||
#endif
|
||||
void warnf(const char* format, ...)
|
||||
{
|
||||
if (getenv("LIBCPUID_NO_WARN"))
|
||||
return;
|
||||
char buff[1024];
|
||||
va_list va;
|
||||
if (!_warn_fun) return;
|
||||
|
|
|
@ -5,6 +5,7 @@ import os, sys, re, random
|
|||
|
||||
|
||||
### Constants:
|
||||
os.environ["LIBCPUID_NO_WARN"] = "1"
|
||||
delimiter = "-" * 80
|
||||
fields_x86 = [ "architecture", "feature-level", "purpose", "family", "model", "stepping",
|
||||
"extfamily", "extmodel", "cores", "logical",
|
||||
|
|
Loading…
Reference in a new issue