Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/xlint/lint1 lint1: enable test cvt_constant
details: https://anonhg.NetBSD.org/src/rev/5dbc3e281669
branches: trunk
changeset: 1017448:5dbc3e281669
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Dec 28 11:19:01 2020 +0000
description:
lint1: enable test cvt_constant
This test had never been enabled. In t_integration.sh 1.3 from
2014-04-17 it was supposed to be enabled, but due to a line continuation
backslash, the words "test_case check_valid" ended up as the description
of the previous test, cvt_in_ternary.
While here, add the expected test output for d_struct_init_nested to
FILES.
diffstat:
tests/usr.bin/xlint/lint1/Makefile | 4 +++-
tests/usr.bin/xlint/lint1/d_cvt_constant.exp | 2 ++
tests/usr.bin/xlint/lint1/t_integration.sh | 6 +++---
3 files changed, 8 insertions(+), 4 deletions(-)
diffs (51 lines):
diff -r a83944e54e02 -r 5dbc3e281669 tests/usr.bin/xlint/lint1/Makefile
--- a/tests/usr.bin/xlint/lint1/Makefile Mon Dec 28 11:05:54 2020 +0000
+++ b/tests/usr.bin/xlint/lint1/Makefile Mon Dec 28 11:19:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2020/12/28 10:22:21 rillig Exp $
+# $NetBSD: Makefile,v 1.19 2020/12/28 11:19:01 rillig Exp $
NOMAN= # defined
@@ -44,6 +44,7 @@
FILES+= d_constant_conv2.c
FILES+= d_constant_conv2.exp
FILES+= d_cvt_constant.c
+FILES+= d_cvt_constant.exp
FILES+= d_cvt_in_ternary.c
FILES+= d_ellipsis_in_switch.c
FILES+= d_gcc_compound_statements1.c
@@ -61,6 +62,7 @@
FILES+= d_packed_structs.c
FILES+= d_shift_to_narrower_type.c
FILES+= d_struct_init_nested.c
+FILES+= d_struct_init_nested.exp
FILES+= d_type_conv1.c
FILES+= d_type_conv1.exp
FILES+= d_type_conv2.c
diff -r a83944e54e02 -r 5dbc3e281669 tests/usr.bin/xlint/lint1/d_cvt_constant.exp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cvt_constant.exp Mon Dec 28 11:19:01 2020 +0000
@@ -0,0 +1,2 @@
+(7): warning: x set but not used in function main [191]
+(11): warning: function main falls off bottom without returning value [217]
diff -r a83944e54e02 -r 5dbc3e281669 tests/usr.bin/xlint/lint1/t_integration.sh
--- a/tests/usr.bin/xlint/lint1/t_integration.sh Mon Dec 28 11:05:54 2020 +0000
+++ b/tests/usr.bin/xlint/lint1/t_integration.sh Mon Dec 28 11:19:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_integration.sh,v 1.7 2020/12/28 10:22:21 rillig Exp $
+# $NetBSD: t_integration.sh,v 1.8 2020/12/28 11:19:01 rillig Exp $
#
# Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -101,8 +101,8 @@
# XXX: Because of polymorphic __builtin_isnan and expression has null effect
# test_case check_valid gcc_extension "Checks GCC __extension__ and __typeof__"
-test_case check_valid cvt_in_ternary "Checks CVT nodes handling in ?" \
-test_case check_valid cvt_constant "Checks constant conversion"
+test_case check_valid cvt_in_ternary "Checks CVT nodes handling in ?"
+test_case check_invalid cvt_constant "Checks constant conversion"
test_case check_valid ellipsis_in_switch "Checks ellipsis in switch()"
test_case check_valid c99_complex_num "Checks C99 complex numbers"
test_case check_valid c99_complex_split "Checks C99 complex access"
Home |
Main Index |
Thread Index |
Old Index