mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +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
|
#endif
|
||||||
void warnf(const char* format, ...)
|
void warnf(const char* format, ...)
|
||||||
{
|
{
|
||||||
|
if (getenv("LIBCPUID_NO_WARN"))
|
||||||
|
return;
|
||||||
char buff[1024];
|
char buff[1024];
|
||||||
va_list va;
|
va_list va;
|
||||||
if (!_warn_fun) return;
|
if (!_warn_fun) return;
|
||||||
|
|
|
@ -5,6 +5,7 @@ import os, sys, re, random
|
||||||
|
|
||||||
|
|
||||||
### Constants:
|
### Constants:
|
||||||
|
os.environ["LIBCPUID_NO_WARN"] = "1"
|
||||||
delimiter = "-" * 80
|
delimiter = "-" * 80
|
||||||
fields_x86 = [ "architecture", "feature-level", "purpose", "family", "model", "stepping",
|
fields_x86 = [ "architecture", "feature-level", "purpose", "family", "model", "stepping",
|
||||||
"extfamily", "extmodel", "cores", "logical",
|
"extfamily", "extmodel", "cores", "logical",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue