Unverified Commit a0a2a495 authored by Félix's avatar Félix Committed by GitHub
Browse files

nsncd: Skip some tests on big-endian (#426747)

parents 5d4fd2fd bb28c3b5
Loading
Loading
Loading
Loading
+21 −13
Original line number Diff line number Diff line
@@ -25,7 +25,8 @@ rustPlatform.buildRustPackage {
  useFetchCargoVendor = true;
  cargoHash = "sha256-9M8Y0WwXFlrpRleSQPYDpnjNnxKGvrtO6Istl9qM30M=";

  checkFlags = [
  checkFlags =
    [
      # Relies on the test environment to be able to resolve "localhost"
      # on IPv4. That's not the case in the Nix sandbox somehow. Works
      # when running cargo test impurely on a (NixOS|Debian) machine.
@@ -37,6 +38,13 @@ rustPlatform.buildRustPackage {
      "--skip=handlers::test::test_handle_getservbyport_port"
      "--skip=handlers::test::test_handle_getservbyport_port_proto"
      "--skip=handlers::test::test_handle_getservbyport_port_proto_aliases"
    ]
    ++ lib.optionals stdenv.hostPlatform.isBigEndian [
      # Expected serialisation output in tests doesn't account for endianness differences
      # https://github.com/twosigma/nsncd/issues/160
      "--skip=handlers::test::test_hostent_serialization"
      "--skip=handlers::test::test_innetgroup_serialization_in_group"
      "--skip=handlers::test::test_netgroup_serialization"
    ];

  meta = with lib; {