NetBSD-Bugs archive

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

bin/51807: [PATCH] tests/lib/libc/gen/t_assert: disable core file generation in :assert_false,:assert_true



>Number:         51807
>Category:       bin
>Synopsis:       [PATCH] tests/lib/libc/gen/t_assert: disable core file generation in :assert_false,:assert_true
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 10 09:10:00 +0000 2017
>Originator:     Ngie Cooper
>Release:        7.0.2
>Organization:
>Environment:
n/a
>Description:
The attached patch disables core file generation via setrlimit in tests/lib/libc/gen/t_assert .

Although kyua would generally clean up this core file, if `kern.corefile` (on FreeBSD -- equivalent to `kern.defcorename`) was modified to be an absolute path, the core file would never be cleaned up. This caused false positives while testing at work, considering that the test only validates the signal being raised, but the core file being present (we have checkers that look for core files and flag any present core files as failures).
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index