From b4c71e023d9094c5a564fca835c2d65e10db1a64 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Mon, 14 Dec 2020 16:42:40 -0800 Subject: [PATCH] Revert "Enable tests for #202 on macOS with Xcode 12+, add catalina workflow (#414)" This reverts commit 0e778165ce43152acee9b9e9863ce6e1066fa26d. --- .github/workflows/macos.yml | 45 ------------------------------------- src/SDF_TEST.cc | 16 ++++++------- 2 files changed, 8 insertions(+), 53 deletions(-) delete mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index c9a9f7264..000000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: macOS latest - -on: [push, pull_request] - -jobs: - build: - - env: - PACKAGE: sdformat8 - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Homebrew - id: set-up-homebrew - uses: Homebrew/actions/setup-homebrew@master - - run: brew config - - - name: Install base dependencies - run: | - brew tap osrf/simulation; - brew install --only-dependencies ${PACKAGE}; - - - run: mkdir build - - name: cmake - working-directory: build - run: cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/${PACKAGE}/HEAD - - run: make - working-directory: build - - run: make test - working-directory: build - env: - CTEST_OUTPUT_ON_FAILURE: 1 - - name: make install - working-directory: build - run: | - make install; - brew link ${PACKAGE}; - - name: Compile example code - working-directory: examples - run: | - mkdir build; - cd build; - cmake ..; - make; - ./simple ../simple.sdf; diff --git a/src/SDF_TEST.cc b/src/SDF_TEST.cc index ccc2e718c..a947cf55c 100644 --- a/src/SDF_TEST.cc +++ b/src/SDF_TEST.cc @@ -132,9 +132,9 @@ TEST(SDF, UpdateElement) staticParam->Get(flagCheck); EXPECT_EQ(flagCheck, fixture.flag); poseParam->Get(poseCheck); - // test fails on homebrew with Xcode 11 and earlier, see issue 202 + // test fails on homebrew see issue 202 // https://github.com/osrf/sdformat/issues/202 -#if !(defined(__APPLE__) && defined(__clang_major__) && __clang_major__ < 12) +#ifndef __APPLE__ EXPECT_EQ(poseCheck, fixture.pose); #endif } @@ -419,9 +419,9 @@ TEST(SDF, GetAny) } catch(std::bad_any_cast &/*_e*/) { - // test fails on homebrew with Xcode 11 and earlier, see issue 202 + // test fails on homebrew see issue 202 // https://github.com/osrf/sdformat/issues/202 -#if !(defined(__APPLE__) && defined(__clang_major__) && __clang_major__ < 12) +#ifndef __APPLE__ FAIL(); #endif } @@ -437,9 +437,9 @@ TEST(SDF, GetAny) } catch(std::bad_any_cast &/*_e*/) { - // test fails on homebrew with Xcode 11 and earlier, see issue 202 + // test fails on homebrew see issue 202 // https://github.com/osrf/sdformat/issues/202 -#if !(defined(__APPLE__) && defined(__clang_major__) && __clang_major__ < 12) +#ifndef __APPLE__ FAIL(); #endif } @@ -481,9 +481,9 @@ TEST(SDF, GetAny) } catch(std::bad_any_cast &/*_e*/) { - // test fails on homebrew with Xcode 11 and earlier, see issue 202 + // test fails on homebrew see issue 202 // https://github.com/osrf/sdformat/issues/202 -#if !(defined(__APPLE__) && defined(__clang_major__) && __clang_major__ < 12) +#ifndef __APPLE__ FAIL(); #endif }