diff options
author | Hans Bolinder <[email protected]> | 2017-02-21 13:04:32 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-02-22 15:34:22 +0100 |
commit | 3911b13f43452b0bbefd8ef03bf2d5316aa85077 (patch) | |
tree | 9f00c93350dbfaceddd26f1c14be064fa15b2128 /lib/stdlib/test/sofs_SUITE.erl | |
parent | a4ac87e2cb953b23f87b46498fd921ac6709f7e9 (diff) | |
download | otp-3911b13f43452b0bbefd8ef03bf2d5316aa85077.tar.gz otp-3911b13f43452b0bbefd8ef03bf2d5316aa85077.tar.bz2 otp-3911b13f43452b0bbefd8ef03bf2d5316aa85077.zip |
stdlib: Simplify error handling of the sofs module
Atoms ('badarg', 'type_mismatch', &c) are used as errors instead of
tuples containing the parameters. This makes it possible for the
garbage collector to reclaim memory earlier.
Since the exact format of error tuples is undocumented no release note
is deemed necessary.
Diffstat (limited to 'lib/stdlib/test/sofs_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/sofs_SUITE.erl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/stdlib/test/sofs_SUITE.erl b/lib/stdlib/test/sofs_SUITE.erl index 13c12ad2f2..f67bf16f0f 100644 --- a/lib/stdlib/test/sofs_SUITE.erl +++ b/lib/stdlib/test/sofs_SUITE.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2001-2016. All Rights Reserved. +%% Copyright Ericsson AB 2001-2017. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -1837,11 +1837,8 @@ digraph(Conf) when is_list(Conf) -> ok. digraph_fail(ExitReason, Fail) -> - {'EXIT', {ExitReason, [{sofs,family_to_digraph,A,_}|_]}} = Fail, - case {test_server:is_native(sofs),A} of - {false,[_,_]} -> ok; - {true,2} -> ok - end. + {'EXIT', {ExitReason, [{sofs,family_to_digraph,2,_}|_]}} = Fail, + ok. constant_function(Conf) when is_list(Conf) -> E = empty_set(), |