Skip to content

rebar3 ct fails on my system (but not on Travis) #251

Closed

Description

@yurrriq

===> Compiling lfe

src/lfe_qlc.erl:35: Warning: variable 'Opts' is unused

src/lfe_ms.erl:302: Warning: function fetch_binding/2 is unused

src/lfe_macro.erl:625: Warning: function trim_stacktrace/1 is unused
src/lfe_macro.erl:1025: Warning: variable 'V' shadowed in 'fun'

src/lfe_eval.erl:128: Warning: variable 'M' shadowed in 'fun'
src/lfe_eval.erl:132: Warning: variable 'M' shadowed in 'fun'
src/lfe_eval.erl:469: Warning: function init_letrec_env/1 is unused
src/lfe_eval.erl:475: Warning: function extend_letrec_env/3 is unused
src/lfe_eval.erl:475: Warning: variable 'Fbs0' is unused
src/lfe_eval.erl:744: Warning: variable 'M' shadowed in 'fun'
src/lfe_eval.erl:748: Warning: variable 'M' shadowed in 'fun'

src/lfe_edlin_expand.erl:228: Warning: function over_non_symbol/3 is unused

src/lfe_codegen.erl:851: Warning: variable 'St' shadowed in 'fun'
src/lfe_codegen.erl:974: Warning: variable 'St' shadowed in 'fun'
src/lfe_codegen.erl:981: Warning: variable 'St' shadowed in 'fun'
src/lfe_codegen.erl:986: Warning: variable 'St' shadowed in 'fun'

===> Running Common Test suites...

/Applications/Xcode.app/Contents/Developer/usr/bin/make  erlc-lfec
make[1]: Nothing to be done for `erlc-lfec'.
test/andor_SUITE.lfe:94: Warning: this clause cannot match because of different types/sizes
test/andor_SUITE.lfe:94: Warning: this clause cannot match because a previous clause always matches
test/andor_SUITE.lfe:102: Warning: this clause cannot match because of different types/sizes
test/guard_SUITE.lfe:765: unbound symbol: guard_SUITE
test/guard_SUITE.lfe:765: unbound symbol: all
test/guard_SUITE.lfe:765: unbound function: #(function 3)
test/guard_SUITE.lfe:765: unbound symbol: guard_SUITE
test/guard_SUITE.lfe:765: unbound symbol: all
test/guard_SUITE.lfe:765: unbound function: #(function 3)
===> Hook for ct failed!

It seems to be upset about the switch from fun to function. If I switch back, then all the tests pass again.

patch

diff --git a/test/guard_SUITE.lfe b/test/guard_SUITE.lfe
index 33b1344..e77d916 100644
--- a/test/guard_SUITE.lfe
+++ b/test/guard_SUITE.lfe
@@ -764,9 +764,9 @@

 (defun is_function_2
   ([config] (when (is_list config))
-   (line (test-pat 'true (is_function (id (function guard_SUITE all 1)) 1)))
+   (line (test-pat 'true (is_function (id (fun guard_SUITE all 1)) 1)))
    (line (test-pat 'true (is_function (id (lambda () 'ok)) 0)))
-   (line (test-pat 'false (is_function (id (function guard_SUITE all 1)) 0)))
+   (line (test-pat 'false (is_function (id (fun guard_SUITE all 1)) 0)))
    (line (test-pat 'false (is_function (id (lambda () 'ok)) 1)))

    (let ((F (lambda (_) 'ok)))

Any idea what's going on here? I'm on Erlang 18.3.4, built using this Nix package, on macOS 10.11.5.

Activity

  1. rvirding commented on Jul 15, 2016

    @rvirding
    Member

    That is weird. You seem to have got the latest test suites but are not running the latest version of the compiler and rest of the system. Are you sure your lfe and lfec commands are pointing to this version of lfe? rebar3 uses lfec which needs lfe.

    This should be fixed.

  2. added 2 commits that reference this issue on Jul 16, 2016
    a4e3ccc
    4a57faf
  3. added 3 commits that reference this issue on Jul 16, 2016
    5fb2207
    538dff0
    d92ba52
  4. added a commit that references this issue on Jul 26, 2020
    900ebef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions