Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Sun Sep 26 03:18:00 UTC 2021

Modified Files:
        src/distrib/sets/lists/tests: mi
        src/tests/usr.bin/xlint/lint1: Makefile t_integration.sh
Added Files:
        src/tests/usr.bin/xlint/lint1: platform_ilp32.c platform_ilp32.exp
            platform_int.c platform_int.exp platform_ldbl128.c
            platform_ldbl128.exp platform_ldbl64.c platform_ldbl64.exp
            platform_ldbl96.c platform_ldbl96.exp platform_long.c
            platform_long.exp platform_lp64.c platform_lp64.exp
            platform_schar.c platform_schar.exp platform_uchar.c
            platform_uchar.exp

Log Message:
tests/lint: add tests for platform characteristics

Running lint in usr.bin/make on i386 fails due to this warning:

cond.c(800): warning: argument #3 is converted from 'unsigned char' to
    'unsigned int' due to prototype [259]

This warning only occurred on i386 but not on sparc or x86_64. Try to
reproduce the test situation in platform_int.

The platform code in t_integration.sh was not strict enough, it didn't
check for multiple conditions, such as in msg_132_ilp32. That test was
only supposed to run on ILP32 platforms where size_t is unsigned int. It
also ran on sparc, even though size_t is long there.


To generate a diff of this commit:
cvs rdiff -u -r1.1129 -r1.1130 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.112 -r1.113 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/platform_ilp32.c \
    src/tests/usr.bin/xlint/lint1/platform_ilp32.exp \
    src/tests/usr.bin/xlint/lint1/platform_int.c \
    src/tests/usr.bin/xlint/lint1/platform_int.exp \
    src/tests/usr.bin/xlint/lint1/platform_ldbl128.c \
    src/tests/usr.bin/xlint/lint1/platform_ldbl128.exp \
    src/tests/usr.bin/xlint/lint1/platform_ldbl64.c \
    src/tests/usr.bin/xlint/lint1/platform_ldbl64.exp \
    src/tests/usr.bin/xlint/lint1/platform_ldbl96.c \
    src/tests/usr.bin/xlint/lint1/platform_ldbl96.exp \
    src/tests/usr.bin/xlint/lint1/platform_long.c \
    src/tests/usr.bin/xlint/lint1/platform_long.exp \
    src/tests/usr.bin/xlint/lint1/platform_lp64.c \
    src/tests/usr.bin/xlint/lint1/platform_lp64.exp \
    src/tests/usr.bin/xlint/lint1/platform_schar.c \
    src/tests/usr.bin/xlint/lint1/platform_schar.exp \
    src/tests/usr.bin/xlint/lint1/platform_uchar.c \
    src/tests/usr.bin/xlint/lint1/platform_uchar.exp
cvs rdiff -u -r1.70 -r1.71 src/tests/usr.bin/xlint/lint1/t_integration.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index