test suite: Add expected output for every test.
authorCarl Worth <cworth@cworth.org>
Wed, 2 Jun 2010 22:59:45 +0000 (15:59 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 2 Jun 2010 22:59:45 +0000 (15:59 -0700)
commit5ae88af9886b4b7bf486cbc0d10a9bab6456165f
treef3d1bc0b6b4efaa9fc164ec17bb1c76aa2f7bd45
parent14c98a56442a076a831aee85e9b3e54d934ec360
test suite: Add expected output for every test.

Rather than using the (munged) output of "gcc -E" we now capture
precisely the output we expect from every test case. This allows us to
stay immune from strange output from gcc (unpredictable whitespace
output---aprticularly with different gcc versions).

This will also allow us to write tests that capture expected error
messages from the preprocessor as well.
70 files changed:
.gitignore
Makefile
tests/000-content-with-spaces.c.expected [new file with mode: 0644]
tests/001-define.c.expected [new file with mode: 0644]
tests/002-define-chain.c.expected [new file with mode: 0644]
tests/003-define-chain-reverse.c.expected [new file with mode: 0644]
tests/004-define-recursive.c.expected [new file with mode: 0644]
tests/005-define-composite-chain.c.expected [new file with mode: 0644]
tests/006-define-composite-chain-reverse.c.expected [new file with mode: 0644]
tests/007-define-composite-recursive.c.expected [new file with mode: 0644]
tests/008-define-empty.c.expected [new file with mode: 0644]
tests/009-undef.c.expected [new file with mode: 0644]
tests/010-undef-re-define.c.expected [new file with mode: 0644]
tests/011-define-func-empty.c.expected [new file with mode: 0644]
tests/012-define-func-no-args.c.expected [new file with mode: 0644]
tests/013-define-func-1-arg-unused.c.expected [new file with mode: 0644]
tests/014-define-func-2-arg-unused.c.expected [new file with mode: 0644]
tests/015-define-object-with-parens.c.expected [new file with mode: 0644]
tests/016-define-func-1-arg.c.expected [new file with mode: 0644]
tests/017-define-func-2-args.c.expected [new file with mode: 0644]
tests/018-define-func-macro-as-parameter.c.expected [new file with mode: 0644]
tests/019-define-func-1-arg-multi.c.expected [new file with mode: 0644]
tests/020-define-func-2-arg-multi.c.expected [new file with mode: 0644]
tests/021-define-func-compose.c.expected [new file with mode: 0644]
tests/022-define-func-arg-with-parens.c.expected [new file with mode: 0644]
tests/023-define-extra-whitespace.c.expected [new file with mode: 0644]
tests/024-define-chain-to-self-recursion.c.expected [new file with mode: 0644]
tests/025-func-macro-as-non-macro.c.expected [new file with mode: 0644]
tests/026-define-func-extra-newlines.c.expected [new file with mode: 0644]
tests/027-define-chain-obj-to-func.c.expected [new file with mode: 0644]
tests/028-define-chain-obj-to-non-func.c.expected [new file with mode: 0644]
tests/029-define-chain-obj-to-func-with-args.c.expected [new file with mode: 0644]
tests/030-define-chain-obj-to-func-compose.c.expected [new file with mode: 0644]
tests/031-define-chain-func-to-func-compose.c.expected [new file with mode: 0644]
tests/032-define-func-self-recurse.c.expected [new file with mode: 0644]
tests/033-define-func-self-compose.c.expected [new file with mode: 0644]
tests/034-define-func-self-compose-non-func.c.expected [new file with mode: 0644]
tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected [new file with mode: 0644]
tests/036-define-func-non-macro-multi-token-argument.c.expected [new file with mode: 0644]
tests/037-finalize-unexpanded-macro.c.expected [new file with mode: 0644]
tests/038-func-arg-with-commas.c.expected [new file with mode: 0644]
tests/039-func-arg-obj-macro-with-comma.c.expected [new file with mode: 0644]
tests/040-token-pasting.c.expected [new file with mode: 0644]
tests/041-if-0.c.expected [new file with mode: 0644]
tests/042-if-1.c.expected [new file with mode: 0644]
tests/043-if-0-else.c.expected [new file with mode: 0644]
tests/044-if-1-else.c.expected [new file with mode: 0644]
tests/045-if-0-elif.c.expected [new file with mode: 0644]
tests/046-if-1-elsif.c.expected [new file with mode: 0644]
tests/047-if-elif-else.c.expected [new file with mode: 0644]
tests/048-if-nested.c.expected [new file with mode: 0644]
tests/049-if-expression-precedence.c.expected [new file with mode: 0644]
tests/050-if-defined.c.expected [new file with mode: 0644]
tests/051-if-relational.c.expected [new file with mode: 0644]
tests/052-if-bitwise.c.expected [new file with mode: 0644]
tests/053-if-divide-and-shift.c.expected [new file with mode: 0644]
tests/054-if-with-macros.c.expected [new file with mode: 0644]
tests/055-define-chain-obj-to-func-parens-in-text.c.expected [new file with mode: 0644]
tests/056-macro-argument-with-comma.c.expected [new file with mode: 0644]
tests/057-empty-arguments.c.expected [new file with mode: 0644]
tests/058-token-pasting-empty-arguments.c.expected [new file with mode: 0644]
tests/059-token-pasting-integer.c.expected [new file with mode: 0644]
tests/060-left-paren-in-macro-right-paren-in-text.c.expected [new file with mode: 0644]
tests/061-define-chain-obj-to-func-multi.c.expected [new file with mode: 0644]
tests/062-if-0-skips-garbage.c.expected [new file with mode: 0644]
tests/063-comments.c.expected [new file with mode: 0644]
tests/071-punctuator.c.expected [new file with mode: 0644]
tests/072-token-pasting-same-line.c.expected [new file with mode: 0644]
tests/099-c99-example.c.expected [new file with mode: 0644]
tests/glcpp-test