tests: Tolerate carriage-returns in output for SAMPLE test.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Aug 2020 20:44:14 +0000 (20:44 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Aug 2020 22:32:44 +0000 (22:32 +0000)
This fixes a test failure with mingw.

tests/language/xforms/sample.at

index 406517a03d09b35baa4c7706131be4796dcb81a5..70cf6e64ef1fc1222d5dbd37437badbf8baa37b7 100644 (file)
@@ -42,6 +42,7 @@ AT_CHECK(
   [n=0
    while read line; do
      n=`expr $n + 1`
+     line=$(echo "$line" | tr -d '\r')
      case $line in # (
        "Table: Data List" | A | [[0-9]] | 10) ;; # (
        *) echo $line; exit 1;