Changeset 584 in openpam
- Timestamp:
- 04/07/12 22:47:16 (14 months ago)
- File:
-
- 1 edited
-
trunk/t/t_openpam_readword.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/t_openpam_readword.c
r578 r584 400 400 401 401 orw_open(); 402 orw_output("\\ \\\t \\\r \n");402 orw_output("\\ \\\t \\\r \\\n\n"); 403 403 orw_rewind(); 404 404 ret = orw_expect(" ", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 405 405 orw_expect("\t", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 406 orw_expect("\r", 0 /*lines*/, 0 /*eof*/, 1 /*eol*/); 406 orw_expect("\r", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 407 /* this last one is a line continuation */ 408 orw_expect(NULL, 1 /*lines*/, 0 /*eof*/, 1 /*eol*/); 407 409 orw_close(); 408 410 return (ret); … … 617 619 orw_rewind(); 618 620 ret = orw_expect("\"", 0 /*lines*/, 0 /*eof*/, 1 /*eol*/); 621 orw_close(); 622 return (ret); 623 } 624 625 T_FUNC(escaped_whitespace_within_single_quotes, 626 "escaped whitespace within single quotes") 627 { 628 int ret; 629 630 orw_open(); 631 orw_output("'\\ ' '\\\t' '\\\r' '\\\n'\n"); 632 orw_rewind(); 633 ret = orw_expect("\\ ", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 634 orw_expect("\\\t", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 635 orw_expect("\\\r", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 636 orw_expect("\\\n", 1 /*lines*/, 0 /*eof*/, 1 /*eol*/); 637 orw_close(); 638 return (ret); 639 } 640 641 T_FUNC(escaped_whitespace_within_double_quotes, 642 "escaped whitespace within double quotes") 643 { 644 int ret; 645 646 orw_open(); 647 orw_output("\"\\ \" \"\\\t\" \"\\\r\" \"\\\n\"\n"); 648 orw_rewind(); 649 ret = orw_expect("\\ ", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 650 orw_expect("\\\t", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 651 orw_expect("\\\r", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) && 652 /* this last one is a line continuation */ 653 orw_expect("", 1 /*lines*/, 0 /*eof*/, 1 /*eol*/); 619 654 orw_close(); 620 655 return (ret); … … 769 804 T(escaped_single_quote), 770 805 T(escaped_double_quote), 806 T(escaped_whitespace_within_single_quotes), 807 T(escaped_whitespace_within_double_quotes), 771 808 T(escaped_letter_within_single_quotes), 772 809 T(escaped_letter_within_double_quotes),
Note: See TracChangeset
for help on using the changeset viewer.