From d97618ab4fd3f91c08aa9076364d0edcd2ceefd5 Mon Sep 17 00:00:00 2001 From: Xorg Date: Sun, 31 Jan 2021 15:26:13 +0100 Subject: [PATCH] Tests: fix --create argument in convert_instlatx64 tool --- tests/convert_instlatx64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/convert_instlatx64.c b/tests/convert_instlatx64.c index 9b6973b..95f7dab 100644 --- a/tests/convert_instlatx64.c +++ b/tests/convert_instlatx64.c @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) if(argc < 3) { - fprintf(stderr, "Usage: %s \n", argv[0]); + fprintf(stderr, "Usage: %s [--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))