#1956: Confused test 2 in t/src/misc.t
----------------------+-----------------------------------------------------
Reporter: doughera | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: 2.11.0
Severity: medium | Keywords:
Lang: | Patch: new
Platform: |
----------------------+-----------------------------------------------------
I think test 2 in t/src/misc.t is confused. The gist of the test is this
(edited for clarity)
{{{
char *buf = "unchanged";
Parrot_snprintf(interp, buf, 0, "");
if (buf == "unchanged") puts("Done");
else fail(buf);
}}}
I think the test should actually test whether the *contents* of buf have
changed. The attached patch uses strcmp instead.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1956>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets