Ticket #1956 (closed bug: fixed)
Confused test 2 in t/src/misc.t
Reported by: | doughera | Owned by: | NotFound |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 2.11.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | new | Platform: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.