@@ -280,11 +280,17 @@ wget -q https://franke.ms/download/amiga-gcc.tgz; tar -C / -xzf amiga-gcc.tgz; fi script: - - sed -i 's/-DSTDOUT$/&_SIMPLE/' tests/Makefile + # This needs to use ed on macOS, as it has no GNU sed, and sed on Linux, as + # some Travis hosts have no ed. + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then + echo -e '%s/-DSTDOUT$/&_SIMPLE/\nwq' | ed -s tests/Makefile; + else + sed -i 's/-DSTDOUT$/&_SIMPLE/' tests/Makefile; + fi - build() { if ! git clean -fxd >/tmp/clean_log 2>&1; then cat /tmp/clean_log; exit 1;