Ticket #1956: tt1956.patch

File tt1956.patch, 409 bytes (added by doughera, 4 years ago)

Use strcmp to compare strings in t/src/misc.t test 2.

  • t/src/misc.t

    diff --git a/t/src/misc.t b/t/src/misc.t
    index 05d16d4..827ffa3 100644
    a b  
    9494        fail("Cannot create parrot interpreter"); 
    9595    Parrot_snprintf(interp, buf, 0, ""); 
    9696 
    97     if (buf == "unchanged") puts("Done"); 
     97    if (strcmp(buf, "unchanged") == 0) puts("Done"); 
    9898    else fail(buf); 
    9999 
    100100    Parrot_destroy(interp);