From: Michael R Sweet Date: Wed, 14 Feb 2024 15:19:39 +0000 (-0500) Subject: Add proposed workaround for Github Actions CI test on macOS. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3268fa6dcfdc4bd2f40c207c38bc7a595844428b;p=thirdparty%2Fcups.git Add proposed workaround for Github Actions CI test on macOS. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d6fcfb4ea7..05fba122df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,8 +67,8 @@ jobs: run: ./configure --enable-debug --enable-maintainer --enable-sanitizer - name: make run: make -# - name: test -# run: make test || cat test/error_log* + - name: test + run: make test || cat test/error_log* build-windows: diff --git a/cups/testhttp.c b/cups/testhttp.c index 648858f7dd..6dcdfb8384 100644 --- a/cups/testhttp.c +++ b/cups/testhttp.c @@ -369,7 +369,11 @@ main(int argc, // I - Number of command-line arguments } else if (isdigit(hostname[0] & 255)) { - testEndMessage(false, "ignored because hostname is numeric"); + testEndMessage(true, "ignored because hostname is numeric"); + } + else if (strncmp(hostname, "mac-", 4) && isdigit(hostname[4])) + { + testEndMessage(true, "ignored because GitHub Actions macOS runner doesn't resolve its own hostname"); } else {