diff options
author | Björn Gustavsson <[email protected]> | 2015-03-27 09:53:50 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-10 12:33:24 +0200 |
commit | f0bdd85484a0530f82d68c290dfc68ca83407e93 (patch) | |
tree | 0b1b733dbc995cce96634910906a2439c2e0fbaa /lib/stdlib/test | |
parent | a749ef2bafd3f5580b770a51931a3bc32f9404a9 (diff) | |
download | otp-f0bdd85484a0530f82d68c290dfc68ca83407e93.tar.gz otp-f0bdd85484a0530f82d68c290dfc68ca83407e93.tar.bz2 otp-f0bdd85484a0530f82d68c290dfc68ca83407e93.zip |
Eliminate use of now/0 for creating a unique filename
Use erlang:unique_integer/1 instead.
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r-- | lib/stdlib/test/ets_SUITE.erl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/stdlib/test/ets_SUITE.erl b/lib/stdlib/test/ets_SUITE.erl index cf3e53c0cd..c7d4b99355 100644 --- a/lib/stdlib/test/ets_SUITE.erl +++ b/lib/stdlib/test/ets_SUITE.erl @@ -3541,12 +3541,9 @@ verify_rescheduling_exit(Config, ForEachData, Flags, Fix, NOTabs, NOProcs) -> fun () -> repeat( fun () -> - {A, B, C} = now(), - ?line Name = list_to_atom( - TestCase - ++ "-" ++ integer_to_list(A) - ++ "-" ++ integer_to_list(B) - ++ "-" ++ integer_to_list(C)), + Uniq = erlang:unique_integer([positive]), + Name = list_to_atom(TestCase ++ "-" ++ + integer_to_list(Uniq)), Tab = ets_new(Name, Flags), ForEachData(fun(Data) -> ets:insert(Tab, Data) end), case Fix of |