Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remplace -> replace
[simgrid.git] / testsuite / xbt / multidict_crash.c
index 5aec582..c1bcac8 100644 (file)
@@ -51,15 +51,15 @@ static gras_error_t test1() {
        }
        val[l][k]='\0';
        if (verbose) printf("%s ; ",val[l]);
-       key[l]=val[l];//  NOWADAYS, no need to strdup the key.
+       key[l]=val[l];/*  NOWADAYS, no need to strdup the key. */
       }
       if (verbose) printf("in multitree %p.\n",head);
-      TRYFAIL(gras_multidict_insert(&head,MULTICACHE_DEPTH,key,
-                                   strdup(val[0]),&free));
+      TRYFAIL(gras_multidict_set(&head,MULTICACHE_DEPTH,key,
+                                strdup(val[0]),&free));
 
-      TRYFAIL(gras_multidict_retrieve(head,
-                                     MULTICACHE_DEPTH,(const char **)val,
-                                     &data));
+      TRYFAIL(gras_multidict_get(head,
+                                MULTICACHE_DEPTH,(const char **)val,
+                                &data));
       if (!data || strcmp((char*)data,val[0])) {
        fprintf(stderr,"Retrieved value (%s) does not match the entrered one (%s)\n",
                (char*)data,val[0]);