Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Created February 16, 2017 16:10
Show Gist options
  • Save drewkerrigan/942b8bba5dba797df8ee8e8ca3f9c01e to your computer and use it in GitHub Desktop.
Save drewkerrigan/942b8bba5dba797df8ee8e8ca3f9c01e to your computer and use it in GitHub Desktop.
Stdout printing broken in erlang 19.2
kerl build 19.1 19.1 && kerl install 19.1 ~/erlang/19.1
kerl build 19.2 19.2 && kerl install 19.2 ~/erlang/19.2
mkdir test
cat >test/test_SUITE.erl <<EOL
-module(test_SUITE).
-include_lib("common_test/include/ct.hrl").
-compile([export_all]).
all() ->
[log_test].
log_test(_Config) ->
ct:print("hello").
EOL
. ~/erlang/19.2/activate
rebar3 ct
# ===> Verifying dependencies...
# ===> Running Common Test suites...
# %%% test_SUITE ==> log_test: OK
# All 1 tests passed.
. ~/erlang/19.1/activate
rebar3 ct
# ===> Verifying dependencies...
# ===> Running Common Test suites...
#
# ----------------------------------------------------
# 2017-02-16 11:05:41.304
# hello
#
# %%% test_SUITE ==> log_test: OK
# All 1 tests passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment