diff --git a/tests/amd_rapl.c b/tests/amd_rapl.c
index 7c05ab5826954a7f4d7127c9fa3b18896af31e86..ac7cda9988f5fadc344b2826c81cae97bbe8a53e 100644
--- a/tests/amd_rapl.c
+++ b/tests/amd_rapl.c
@@ -129,7 +129,7 @@ do {                                                   \
 TFUNCTION(test_label_amd_rapl, {
     CpuSensor sensors[100];
     AmdRapl rapl;
-    char *results[100];
+    const char *results[100];
     char expecteds[10][100];
     uint64_t nb = 0;