Unverified Commit cda03319 authored by Yt's avatar Yt Committed by GitHub
Browse files

gleam: skip failing tests on x86_64-darwin (#455863)

parents fd7793ba f24f3e93
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  rustPlatform,
  fetchFromGitHub,
  git,
@@ -46,6 +47,26 @@ rustPlatform.buildRustPackage (finalAttrs: {
  checkFlags = [
    # Makes a network request
    "--skip=tests::echo::echo_dict"
  ]
  ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
    # Snapshot tests fail because a warning is shown on stdout
    # warn: CPU lacks AVX support, strange crashes may occur. Reinstall Bun or use *-baseline build:
    #   https://github.com/oven-sh/bun/releases/download/bun-v1.3.1/bun-darwin-x64-baseline.zip
    "--skip=tests::echo::echo_bitarray"
    "--skip=tests::echo::echo_bool"
    "--skip=tests::echo::echo_charlist"
    "--skip=tests::echo::echo_circular_reference"
    "--skip=tests::echo::echo_custom_type"
    "--skip=tests::echo::echo_float"
    "--skip=tests::echo::echo_function"
    "--skip=tests::echo::echo_importing_module_named_inspect"
    "--skip=tests::echo::echo_int"
    "--skip=tests::echo::echo_list"
    "--skip=tests::echo::echo_nil"
    "--skip=tests::echo::echo_singleton"
    "--skip=tests::echo::echo_string"
    "--skip=tests::echo::echo_tuple"
    "--skip=tests::echo::echo_with_message"
  ];

  doInstallCheck = true;