Changeset 835 in openpam for trunk/t/t_openpam_readlinev.c


Ignore:
Timestamp:
Oct 28, 2014, 1:48:00 PM (6 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add a test case for line continuation within whitespace, similar to
the corresponding test in t_openpam_readword.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/t_openpam_readlinev.c

    r830 r835  
    226226}
    227227
     228T_FUNC(line_continuation_within_whitespace, "line continuation within whitespace")
     229{
     230        struct t_file *tf;
     231        int ret;
     232
     233        tf = t_fopen(NULL);
     234        t_fprintf(tf, " \\\n \n");
     235        t_frewind(tf);
     236        ret = orlv_expect(tf, empty, 2 /*lines*/, 0 /*eof*/) &&
     237            orlv_expect(tf, NULL, 0 /*lines*/, 1 /*eof*/);
     238        t_fclose(tf);
     239        return (ret);
     240}
     241
    228242
    229243
     
    300314        T(comment),
    301315        T(whitespace_before_comment),
     316        T(line_continuation_within_whitespace),
    302317
    303318        T(one_word),
Note: See TracChangeset for help on using the changeset viewer.