X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/68270520285b0dc869565573fce3b02e860ffa7f..032fe50c0297846a8d03eda505c9726f60a46501:/tests/general.at diff --git a/tests/general.at b/tests/general.at index b0806a3..498028e 100644 --- a/tests/general.at +++ b/tests/general.at @@ -158,7 +158,13 @@ quit ]]) AT_CHECK([cdecl99 --quiet --interactive /d' stdout], [0], [declare x as int + +# If built with readline support, then the input commands (including their +# trailing newlines) will be captured by AT_CHECK. Otherwise, they are not: +# the output just directly follows the prompt, and the final prompt will +# not end with a newline. Attempt to paper over these differences. +AT_CHECK([echo >>stdout; sed '/> [[eq]]/d; s/^> //; /^$/d' stdout], [0], +[declare x as int ]) AT_CLEANUP