diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2016-02-05 13:10:38 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2016-02-05 13:17:25 +0100 |
commit | 6fbe8cd45ee7f9f63dd0cad38dd6529598dcb21e (patch) | |
tree | 601e6b58d6644a6eedb7fce5360a3cde223b3777 /lib/compiler/test/compile_SUITE_data | |
parent | bf11b8fc3e9ac0f3cd48d8a3a834bd7d709ecc9e (diff) | |
download | otp-6fbe8cd45ee7f9f63dd0cad38dd6529598dcb21e.tar.gz otp-6fbe8cd45ee7f9f63dd0cad38dd6529598dcb21e.tar.bz2 otp-6fbe8cd45ee7f9f63dd0cad38dd6529598dcb21e.zip |
Move record compilation errors to erl_lint_SUITE
The two bad record usage test cases in compile_SUITE do not
belong there, as the errors are detected in erl_lint. Move the
test to the erl_lint_SUITE.
Diffstat (limited to 'lib/compiler/test/compile_SUITE_data')
-rw-r--r-- | lib/compiler/test/compile_SUITE_data/bad_record_use.erl | 29 | ||||
-rw-r--r-- | lib/compiler/test/compile_SUITE_data/bad_record_use2.erl | 30 |
2 files changed, 0 insertions, 59 deletions
diff --git a/lib/compiler/test/compile_SUITE_data/bad_record_use.erl b/lib/compiler/test/compile_SUITE_data/bad_record_use.erl deleted file mode 100644 index 0fb6fc3045..0000000000 --- a/lib/compiler/test/compile_SUITE_data/bad_record_use.erl +++ /dev/null @@ -1,29 +0,0 @@ -%% -%% %CopyrightBegin% -%% -%% Copyright Ericsson AB 1998-2009. 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. -%% You may obtain a copy of the License at -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%% -%% %CopyrightEnd% -%% --module(bad_record_use). --export([test/0]). - --record(bad_use, {a=undefined, - b=undefined, - c=undefined}). - -test() -> - NewRecord=#bad_use{a=1, b=2, a=2}. - diff --git a/lib/compiler/test/compile_SUITE_data/bad_record_use2.erl b/lib/compiler/test/compile_SUITE_data/bad_record_use2.erl deleted file mode 100644 index 7c898af00f..0000000000 --- a/lib/compiler/test/compile_SUITE_data/bad_record_use2.erl +++ /dev/null @@ -1,30 +0,0 @@ -%% -%% %CopyrightBegin% -%% -%% Copyright Ericsson AB 1998-2009. 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. -%% You may obtain a copy of the License at -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%% -%% %CopyrightEnd% -%% --module(bad_record_use2). --export([test/0]). - --record(bad_use, {a=undefined, - b=undefined, - c=undefined}). - -test() -> - R=#bad_use{a=1, b=2}, - R2=R#bad_use{a=1, b=2, a=2}, - ok. |