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

Tests: fix --create argument in convert_instlatx64 tool

This commit is contained in:
Xorg 2021-01-31 15:26:13 +01:00
parent 08b4b6e41b
commit d97618ab4f
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A

View file

@ -67,7 +67,7 @@ int main(int argc, char *argv[])
if(argc < 3)
{
fprintf(stderr, "Usage: %s <input file (from instlatx64)> <output file (without extension)>\n", argv[0]);
fprintf(stderr, "Usage: %s <input file (from instlatx64)> <output file (without extension)> [--create]\n", argv[0]);
return 1;
}
@ -158,7 +158,7 @@ int main(int argc, char *argv[])
}
/* Invoke create_test */
snprintf(cmd, CMD_LEN, "./create_test.py %s %s > %s.test", raw_filename, report_filename, output_filename);
snprintf(cmd, CMD_LEN, "%s/tests/create_test.py %s %s > %s.test", libcpuid_directory, raw_filename, report_filename, output_filename);
if((argc > 3) && !strcmp(argv[3], "--create"))
{
if(system(cmd))