1
0
Fork 0
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:
The Tumultuous Unicorn Of Darkness 2024-06-30 20:05:10 +02:00
parent 7b87858dc2
commit 48f82ab05a
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
2 changed files with 3 additions and 0 deletions

View file

@ -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;

View file

@ -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",