Changeset 3171 in MondoRescue for branches/3.0/mondo/test/test-mr_stresc.c


Ignore:
Timestamp:
Jul 28, 2013, 7:37:35 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Fix #673 by improving single quote management in mr_stresc, and using single call for getfacl/getfattr and adding tests to test suite.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/test/test-mr_stresc.c

    r3170 r3171  
    88#include <stdlib.h>
    99#include "mr_str.h"
     10#include "mr_mem.h"
    1011#include "my-stuff.h"
    1112
     
    3940        for (i = 1; strl[i] != NULL ; i++) {
    4041                printf("Test %2d Original chain is %s\n",i,strl[i]);
    41                 p = mr_stresc(strl[i], "`$\\\"(){}'[]&*?|!#~", '\\');
    42                 printf("Test %2d Transformed chain is %s\n",i,p);
     42                p = mr_stresc(strl[i], "`$\\\"(){}'[]&*?|!#~", '\\', '"');
     43                printf("Test %2d Transformed chain (with \") is %s\n",i,p);
     44                mr_free(p);
     45                p = mr_stresc(strl[i], "`$\\\"(){}'[]&*?|!#~", '\\', '\'');
     46                printf("Test %2d Transformed chain (with ') is %s\n",i,p);
     47                mr_free(p);
    4348        }
    4449exit(0);
Note: See TracChangeset for help on using the changeset viewer.