Disable failing tests on i686
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
parent
d431b43d43
commit
c8639c1646
54
elixir-0001-Workaround-for-failed-tests-in-i686.patch
Normal file
54
elixir-0001-Workaround-for-failed-tests-in-i686.patch
Normal file
@ -0,0 +1,54 @@
|
||||
From: Peter Lemenkov <lemenkov@gmail.com>
|
||||
Date: Sun, 21 Jan 2024 12:31:05 +0100
|
||||
Subject: [PATCH] Workaround for failed tests in i686
|
||||
|
||||
I wish one day we just drop all i686 executables as more and more
|
||||
upstream projects did already.
|
||||
|
||||
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
||||
|
||||
diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs
|
||||
index 54f946516..a574801a1 100644
|
||||
--- a/lib/iex/test/iex/helpers_test.exs
|
||||
+++ b/lib/iex/test/iex/helpers_test.exs
|
||||
@@ -332,17 +332,6 @@ test "shows help" do
|
||||
assert help =~ "Welcome to Interactive Elixir"
|
||||
end
|
||||
|
||||
- test "prints Erlang module documentation" do
|
||||
- captured = capture_io(fn -> h(:timer) end)
|
||||
- assert captured =~ "This module provides useful functions related to time."
|
||||
- end
|
||||
-
|
||||
- test "prints Erlang module function specs" do
|
||||
- captured = capture_io(fn -> h(:timer.sleep() / 1) end)
|
||||
- assert captured =~ ":timer.sleep/1"
|
||||
- assert captured =~ "-spec sleep(Time) -> ok when Time :: timeout()."
|
||||
- end
|
||||
-
|
||||
test "handles non-existing Erlang module function" do
|
||||
captured = capture_io(fn -> h(:timer.baz() / 1) end)
|
||||
assert captured =~ "No documentation for :timer.baz was found"
|
||||
@@ -1008,22 +997,6 @@ defmodule TypeSample do
|
||||
cleanup_modules([TypeSample])
|
||||
end
|
||||
|
||||
- test "prints all types in erlang module" do
|
||||
- captured = capture_io(fn -> t(:queue) end)
|
||||
- assert captured =~ "-type queue() :: queue(_)"
|
||||
- assert captured =~ "-opaque queue(Item)"
|
||||
- end
|
||||
-
|
||||
- test "prints single type from erlang module" do
|
||||
- captured = capture_io(fn -> t(:erlang.iovec()) end)
|
||||
- assert captured =~ "-type iovec() :: [binary()]"
|
||||
- assert captured =~ "A list of binaries."
|
||||
-
|
||||
- captured = capture_io(fn -> t(:erlang.iovec() / 0) end)
|
||||
- assert captured =~ "-type iovec() :: [binary()]"
|
||||
- assert captured =~ "A list of binaries."
|
||||
- end
|
||||
-
|
||||
test "handles non-existing types from erlang module" do
|
||||
captured = capture_io(fn -> t(:erlang.foo()) end)
|
||||
assert captured =~ "No type information for :erlang.foo was found or :erlang.foo is private"
|
@ -11,14 +11,17 @@ URL: https://elixir-lang.org/
|
||||
VCS: scm:git:https://github.com/%{upstream}/%{realname}.git
|
||||
Source0: https://github.com/%{upstream}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: https://github.com/%{upstream}/%{name}/releases/download/v%{version}/Docs.zip#/%{name}-%{version}-doc.zip
|
||||
Patch1: elixir-0001-Workaround-for-failed-tests-in-i686.patch
|
||||
# See https://bugzilla.redhat.com/1470583
|
||||
#BuildArch: noarch
|
||||
BuildRequires: erlang-compiler
|
||||
BuildRequires: erlang-crypto
|
||||
BuildRequires: erlang-dialyzer
|
||||
%ifarch %{java_arches}
|
||||
# Requires for unit-testing but not strictly necessary for anything else
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/15654
|
||||
BuildRequires: erlang-doc
|
||||
%endif
|
||||
BuildRequires: erlang-erts
|
||||
BuildRequires: erlang-eunit
|
||||
BuildRequires: erlang-inets
|
||||
@ -33,9 +36,11 @@ BuildRequires: erlang-xmerl
|
||||
BuildRequires: git
|
||||
BuildRequires: sed
|
||||
BuildRequires: make
|
||||
%ifarch %{java_arches}
|
||||
# Requires for unit-testing but not strictly necessary for anything else
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/15654
|
||||
Recommends: erlang-doc
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
|
Loading…
Reference in New Issue
Block a user