1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

tests: fix unused-result warning in convert_instlatx64 tool

This commit is contained in:
Xorg 2020-05-21 19:00:26 +02:00
parent b4560fc740
commit 1a00dac1ee
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A

View file

@ -129,13 +129,21 @@ int main(int argc, char *argv[])
/* Invoke cpuid_tool */
snprintf(cmd, CMD_LEN, "../cpuid_tool/cpuid_tool --load=%s --report --outfile=%s", raw_filename, report_filename);
system(cmd);
if(system(cmd))
{
perror("Failed to load raw file in cpuid_tool");
return 1;
}
/* Invoke create_test */
snprintf(cmd, CMD_LEN, "./create_test.py %s %s > %s.test", raw_filename, report_filename, output_filename);
if((argc > 3) && !strcmp(argv[3], "--create"))
{
system(cmd);
if(system(cmd))
{
perror("Failed to create test");
return 1;
}
remove(raw_filename);
remove(report_filename);
}