Ciro Santilli has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/27311 )
Change subject: tests: move stack-print test to the new framework
......................................................................
tests: move stack-print test to the new framework
Change-Id: Id002bdaa0627a6fd31b577d39f16332841c381cf
---
R tests/test-progs/stack-print.c
D tests/test-progs/stack-print/bin/x86/linux/stack-print
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/test-progs/stack-print/src/stack-print.c
b/tests/test-progs/stack-print.c
similarity index 94%
rename from tests/test-progs/stack-print/src/stack-print.c
rename to tests/test-progs/stack-print.c
index 9fbf962..2df0605 100644
--- a/tests/test-progs/stack-print/src/stack-print.c
+++ b/tests/test-progs/stack-print.c
@@ -40,16 +40,16 @@
{
int i;
- printf("%p: argc: [%d]\n", &argc, argc);
+ printf("%p: argc: [%d]\n", (void*)&argc, argc);
printf("\n");
for (i = 0; i < argc; i++)
- printf("%p: argv[%d]: [%s]\n", &argv[i], i, argv[i]);
+ printf("%p: argv[%d]: [%s]\n", (void*)&argv[i], i, argv[i]);
printf("\n");
i = 0;
while (envp[i] != NULL) {
- printf("%p: envp[%d]: [%s]\n", &envp[i], i, envp[i]);
+ printf("%p: envp[%d]: [%s]\n", (void*)&envp[i], i, envp[i]);
i++;
}
printf("\n");
@@ -159,7 +159,7 @@
printf("\n");
return 0;
}
- printf("%p: %s: [%lx]\n", auxv, type, auxv->a_un.a_val);
+ printf("%p: %s: [%lx]\n", (void *)auxv, type, auxv->a_un.a_val);
}
}
diff --git a/tests/test-progs/stack-print/bin/x86/linux/stack-print
b/tests/test-progs/stack-print/bin/x86/linux/stack-print
deleted file mode 100755
index e40dc48..0000000
--- a/tests/test-progs/stack-print/bin/x86/linux/stack-print
+++ /dev/null
Binary files differ
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/27311
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Id002bdaa0627a6fd31b577d39f16332841c381cf
Gerrit-Change-Number: 27311
Gerrit-PatchSet: 1
Gerrit-Owner: Ciro Santilli <ciro.santi...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev