summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2012-01-25 17:01:39 +0100
committerBjörn Gustavsson <bjorn@erlang.org>2012-01-25 17:01:39 +0100
commit1695be3437010b4e18c51dc184e058a29c3ed8de (patch)
tree8ee0ef1a2bbe96021d724ea70cd5f7fb66f02b84
parentd58a69fcf3af87043d6d807f3101bf0b4d9f6a41 (diff)
downloaderlang-1695be3437010b4e18c51dc184e058a29c3ed8de.tar.gz
compile_SUITE: Eliminate race condition
Compiling the same source code with the same options may not produce the same BEAM file because the compilation time is included in the "CInf" chunk.
-rw-r--r--lib/compiler/test/compile_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl
index 32d53add53..640849f2ec 100644
--- a/lib/compiler/test/compile_SUITE.erl
+++ b/lib/compiler/test/compile_SUITE.erl
@@ -813,9 +813,9 @@ sys_pre_attributes(Config) ->
{ok,Mod,_} = compile:file(File, PreOpts ++ CommonOpts),
{ok,Mod,_} = compile:file(File,
[{attribute,replace,replaced,42}|CommonOpts]),
- {ok,Mod,Code} = compile:file(File, PrePostOpts ++ PreOpts ++
- PostOpts ++ CommonOpts --
- [report,verbose]),
+ {ok,Mod,_} = compile:file(File, PrePostOpts ++ PreOpts ++
+ PostOpts ++ CommonOpts --
+ [report,verbose]),
ok.
%%%