309584 |
06-Dec-2016 |
glebius |
Merge r308330 by bapt:
localedef: Fix ctype dump (fixed wide spread errors)
See original commit for longer description.
Errata Notice: EN-16:21 Approved by: so |
303975 |
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
301753 |
09-Jun-2016 |
ngie |
Fix up r274061
Detect /usr/share/dict/words the "right way" by using require.files instead of the hacked up attempt in the dict(..) function, which didn't work properly on systems where MK_DICT == no.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
301752 |
09-Jun-2016 |
ngie |
Update `goodResult` after recent changes made to the PRNG in libc
The PRNG was changed in r300953/r300956, and subsequently, the numbers generated have changed. This is expected ABI breakage per ache
X-MFC with: r300953, r300956 Tested with: amd64, i386 Sponsored by: EMC / Isilon Storage Division
|
301749 |
09-Jun-2016 |
ngie |
Add debug output to aid in determining why `goodResult` != `result`
MFC after: 1 week PR: 210619 (for diagnosis) Sponsored by: EMC / Isilon Storage Division
|
300680 |
25-May-2016 |
br |
Remove legacy brk and sbrk from RISC-V.
Discussed with: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5
|
300303 |
20-May-2016 |
andrew |
Remove brk and sbrk from arm64. They were defined in The Single UNIX Specification, Version 2, but marked as legacy, and have been removed from later specifications. After 12 years it is time to remove them from new architectures when the main use for sbrk is an invalid method to attempt to find how much memory has been allocated from malloc.
There are a few places in the tree that still call sbrk, however they are not used on arm64. They will need to be fixed to cross build from arm64, but these will be fixed in a follow up commit.
Old copies of binutils from ports called into sbrk, however this has been fixed around 6 weeks ago. It is advised to update binutils on arm64 before installing a world that includes this change.
Reviewed by: brooks, emaste Obtained from: brooks Relnotes: yes Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D6464
|
298660 |
26-Apr-2016 |
ngie |
Fix up r298368
Remove the semicolon accidentally added after the new conditional that tests that /dev/zero is opened successfully.
MFC after: 1 week X-MFC with: r298368 Pointhat to: ngie Reported by: Coverity CID: 1354980 Sponsored by: EMC / Isilon Storage Division
|
298368 |
20-Apr-2016 |
ngie |
Fix coverity issue with contrib/netbsd-tests/lib/libc/ssp/h_read.c
Ensure opening /dev/zero succeeds. Abort the test if it doesn't.
Also, use _PATH_DEVZERO instead of hardcoding "/dev/zero"
MFC after: 2 weeks CID: 1251410 Reported by: Coverity Sponsored by: EMC / Isilon Storage Division"
|
298366 |
20-Apr-2016 |
ngie |
Fix coverity issues with contrib/netbsd-tests/lib/libc/sys/t_connect.c
- Ensure socket(2) calls succeed - Don't leak slist allocated by earlier socket(2) call
MFC after: 2 weeks CID: 976773, 1251405 Reported by: Coverity Sponsored by: EMC / Isilon Storage Division
|
297637 |
07-Apr-2016 |
ngie |
Disable the NetBSD-specific EFAULT requirements test in gettimeofday_err
FreeBSD doesn't specifically list this as a supported error, and in some configurations/versions of FreeBSD, this test will segfault as the memory address might be evaluated in userspace, instead of in kernel space like in NetBSD.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
296586 |
09-Mar-2016 |
bdrewery |
Fix and connect setjmp test.
Sponsored by: EMC / Isilon Storage Division
|
294923 |
27-Jan-2016 |
asomers |
Fix grep_test:recurse with ZFS and TMPFS tmpdirs
contrib/netbsd-tests/usr.bin/grep/t_grep.sh Fix grep_test:recurse when /tmp is either zfs or tmpfs. The test was relying on an implicit ordering of directory recursion which happens to be true when using UFS. grep's specification requires no such ordering. The solution is to ignore the order of grep's results.
Reviewed by: ngie MFC after: 32 days Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4925
|
294899 |
27-Jan-2016 |
ngie |
Add debug output via ATF_REQUIRE_MSG when the first call to mlock(2) fails
This helps identify the problem with running this test on my VM hosts (ENOMEM)
MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
|
294894 |
27-Jan-2016 |
ngie |
Adjust vm.max_wired in order to avoid hitting EAGAIN artificially
Set vm.max_wired to INT_MAX in :mlock_err, :mlock_mmap, and :mlock_nested to avoid hitting EAGAIN artificially on the system when running the tests
Require root privileges in order to set the sysctl
Add allow_sysctl_side_effects to require.config as this test is now adjusting sysctls that can affect the global system state
Unlike the version submitted by cem in OneFS, this version uses a scratch file to save/restore the previous value of the sysctl. I _really_, _really_ wish there were better hooks in atf/kyua for per test suite setup/teardown -- using a file is kludgy, but it's the best I can do to avoid situations where (for instance), sysctl(3) may fail and drop a core outside the kyua sandbox.
Based on a patch submitted by cem, but modified to take business logic out of ATF_TP_ADD_TCS(3).
Differential Revision: https://reviews.freebsd.org/D4779 MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
|
292581 |
22-Dec-2015 |
ngie |
Use stable output to a test file instead of depending on the OS name being grep'able in /bin/sh
This fixes the situation where the OS has been rebranded to something other than `FreeBSD`
MFC after: 1 week Obtained from: Isilon OneFS (^/onefs/head@r511419) Reviewed by: cem, Daniel O'Connor <darius@dons.net.au> Sponsored by: EMC / Isilon Storage Division
|
292578 |
22-Dec-2015 |
ngie |
Don't dump core files with lib/libc/ssp/ssp_test and lib/libc/gen/assert_test
The default `sysctl kern.corefile` value is compatible with `kyua test` (FreeBSD will dump to the current directory). If it's set to an absolute path however, `kyua test` will not be able to clean up the corefiles after the fact
The corefiles have little value when testing the behavior of feature behavior, so just disable corefile generation
MFC after: 1 week Obtained from: Isilon OneFS (^/onefs/head@r511419) Sponsored by: EMC / Isilon Storage Division
|
291615 |
01-Dec-2015 |
rodrigc |
Hack test so that it works on FreeBSD.
|
290913 |
16-Nov-2015 |
ngie |
Port contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSD
- Add missing headers - Ensure mqueuefs is loaded - Make sure the mqueuefs path is absolute and relative to / - Cast the result of mq_open returning -1 to (mqd_t) to mute a compiler warning
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
290911 |
16-Nov-2015 |
ngie |
Ignore EINTR from usleep(3) in try_locks(..)
NetBSD's usleep(3) only returns -1/sets errno=EINVAL when `microseconds` is one million or more
MFC after: 3 days Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
290907 |
16-Nov-2015 |
ngie |
Expect all testcases dealing with invalid salts to fail on FreeBSD
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
290869 |
15-Nov-2015 |
ngie |
Redo r290847: use #ifdef __NetBSD__ on all the non-public APIs to mute -Wunused-but-set-variable warnings with gcc dealing with the function calls
X-MFC with: r290847 MFC after: 1 week Reported by: gcc Sponsored by: EMC / Isilon Storage Division
|
290856 |
15-Nov-2015 |
bapt |
also skip the definition of ':fopen_regular' to avoid the build to fail due to unused variables defined by ATF macros
|
290850 |
15-Nov-2015 |
ngie |
Cast xdr_void to xdrproc_t to mute -Wincompatible-pointer-types warnings from clang
This pattern is used in other areas of lib/libc/rpc
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
290847 |
15-Nov-2015 |
ngie |
Fix -Wunused warnings with variables used unlit code by adding appropriate #ifdef guards around the variables
MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
|
290494 |
07-Nov-2015 |
bapt |
Improve collation string and locales support
Merge collation support from Illumos and DragonflyBSD.
Locales are now generated with the new localedef(1) tool from CLDR POSIX files. The generated files are now identified as "BSD 1.0" format.
The libc now only read "BSD 1.0" locales definitions, all other version will be set to "C" The localedef(1) tool has been imported from Illumos and modified to use tree(3) instead of the CDDL avl(3) A set of tool created by edwin@ and extended by marino@ for dragonfly has been added to be able to generate locales and the Makefiles from the vanilla CLDR unicode databases + a universal UTF-8 charmap (by marino@) Update the locales to unicode v27 Given our regex(3) does not support multibyte (yet) it has been forced to always use locale C Remove now unused colldef(1) and mklocale(1) Finish implementing the numeric BSD extension for ctypes The number of supported locales has grown from 175 to 250 locales. Among the new locales: 6 Arabic locales (AE EG JO MA QA SA), Different variations of spanish locales. Added new 3 components locales for mn_Cyrl_MN, sr_Cyrl_RS sr_Latn_RS, zh_Hans_CN, zh_Hant_HK and zh_Hant_TW. Some aliases has been for 2 components version when possible.
Thanks: Garrett D'Amore (Illumos) who made sure all his work was done under BSD license!, Edwin Groothuis (edwin@) for the work he made on tools to be able to generate locales definition usable in freebsd sources out of vanilla CLDR definitions, John Marino (DragonflyBSD) who first merge the Illumos work into Dragonfly and spent hours tracking down bugs.
|
290184 |
30-Oct-2015 |
ngie |
Fix a set but not used variable warning flagged by gcc 4.9 with lib/libc/ssp/h_readlink
MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
|
289487 |
18-Oct-2015 |
ngie |
Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as bin/dd/tests
Ensure fdescfs is mounted on /dev/fd/ for the length testcase as it's used in validating the characters read from /dev/zero
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
288444 |
01-Oct-2015 |
andrew |
Pass 8 arguments to makecontext on arm64 as this is all we support.
Obtained from: EuroBSDCon Devsummit Sponsored by: ABT Systems Ltd
|
287360 |
01-Sep-2015 |
kib |
Fix t_spawnattr test for attributes handling by posix_spawn(3). Connect it to the build.
The code assumed that SCHED_* constants form a contiguous set of numbers, remove the assumption by using schedulers[] array in get_different_scheduler(). This is no-op on FreeBSD, but improves code portability.
The selection of different priority used the min/max priority range of the current scheduler class, instead of the priority to be changed to. The bug caused the test failure.
Remove duplication of POSIX_SPAWN_SETSIGDEF flag and now unused duplications of MIN/MAX definitions.
Reviewed by: jilles, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3533
|
286649 |
11-Aug-2015 |
jilles |
Fix and re-enable UTF-8 tests.
|
286638 |
11-Aug-2015 |
bapt |
Reenable the test.
Sorry I was testing on the wrong branch.
|
286620 |
11-Aug-2015 |
bapt |
Disable broken test until we have time ti actually fix the test
|
283801 |
31-May-2015 |
araujo |
Fix warning of implicit declaration of function 'mkdir'.
Differential Revision: D2662 Reviewed by: rodrigc, ngie
|
283584 |
26-May-2015 |
emaste |
memmem(3): empty little string matches the beginning of the big string
This function originated in glibc, and this matches their behaviour (and NetBSD, OpenBSD, and musl).
An empty big string (arg "l") is handled by the existing l_len < s_len test.
Reviewed by: bapt, ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2657
|
282056 |
27-Apr-2015 |
ngie |
The fmodl compat shims on arm/mips/powerpc aren't complete
Disable the test code for now on those architectures
MFC after: 1 week PR: 199422
|
281966 |
25-Apr-2015 |
ngie |
Add #include sys/types.h for register_t for mips
MFC after: 3 days
|
279397 |
28-Feb-2015 |
jilles |
nice(): Put back old return value, keeping [EPERM] error.
Commit r279154 changed the API and ABI significantly, and {NZERO} is still wrong.
Also, preserve errno on success instead of setting it to 0.
PR: 189821 Reported by: bde Relnotes: yes
|
279154 |
22-Feb-2015 |
jilles |
nice(): Correct return value and [EPERM] error.
PR: 189821 Obtained from: NetBSD Relnotes: yes
|
278616 |
12-Feb-2015 |
cperciva |
Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin; update paths; and include everything in the "base" distribution.
The "games" distribution being optional made sense when there were more games and we had small disks; but the "games-like" games were moved into the ports tree a dozen years ago and the remaining "utility-like" games occupy less than 0.001% of my laptop's small hard drive. Meanwhile every new user is confronted by the question "do you want games installed" when they they try to install FreeBSD.
The next steps will be:
2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and caesar cipher (caesar, rot13) utilities. I intend to keep fortune, factor, morse, number, primes, and random, since there is evidence that those are still being used.
3. Merging src/games into src/usr.bin.
This change will not be MFCed.
Reviewed by: jmg Discussed at: EuroBSDCon Approved by: gjb (release-affecting changes)
|
278038 |
01-Feb-2015 |
jilles |
ttyname_r(): Return actual error, not always [ENOTTY].
Adjust the test that used to fail because of this bug.
PR: 191936 MFC after: 1 week
|
277829 |
28-Jan-2015 |
ngie |
Revert r277357 as expr has been enhanced to better detect overflow conditions, and now the tests pass
PR: 196867 X-MFC with: r277798 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
277648 |
24-Jan-2015 |
jilles |
Enable utimensat tests from NetBSD.
As with other tests from c063, a required #include <sys/stat.h> was missing.
|
277357 |
19-Jan-2015 |
ngie |
Expect :overflow to fail with FreeBSD's expr as it doesn't have stringent overflow checks like NetBSD's expr does
MFC after: 3 days PR: 196867
|
277278 |
17-Jan-2015 |
ngie |
Fix lib/libthr/tests/detach_test
- Eliminate race with liberal use of sleep(3) [1] - Fix NetBSD-specific implementation way of testing result from pthread_cancel by testing with `td` instead of `NULL` [2]
PR: 196738 [1] PR: 191906 [2]
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
276671 |
04-Jan-2015 |
ngie |
Expect :arithmetic_ops_body to fail with syntax errors on FreeBSD
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
276590 |
02-Jan-2015 |
jilles |
Link lib/libc/c063 tests to the build.
Some files lack required #include <sys/stat.h>. The #ifdef is per ngie's request; the includes are clearly necessary for struct stat.
The faccessat test fails because it tries to use AT_SYMLINK_NOFOLLOW with faccessat(), which is not specified by POSIX.1-2008.
Differential Revision: https://reviews.freebsd.org/D1411 Reviewed by: ngie
|
276527 |
02-Jan-2015 |
ngie |
Don't install h_raw if dealing with clang 3.5.0+ to unbreak the tests2 Jenkins job
The h_raw application doesn't do proper bounds checking without the option being supplied via the build, which means that it doesn't throw signals and fail as expected
PR: 196430 X-MFC with: r276479
|
276521 |
02-Jan-2015 |
ngie |
Reset errno in :scalbnf_val and :scalbnl_val before running the tests so the tested errno isn't stale
This was needed in order for the test to pass on amd64 with stable/10
MFC after: 3 days
|
276430 |
30-Dec-2014 |
ngie |
Expect access_test:access_inval to fail before __FreeBSD_version == 1100033
This will allow me to MFC the test, as jilles@ requested that I don't MFC the access(2) KBI change to 10-STABLE in r271655
|
276046 |
21-Dec-2014 |
ngie |
Add __FreeBSD_version guards around hsearch_r to ease MFCing the code to stable/10
It was added when __FreeBSD_version was ~1100027
|
275033 |
25-Nov-2014 |
jhb |
Only pass 6 arguments to the 'run' function on amd64. amd64's makecontext on FreeBSD only supports a maximum of 6 arguments. This fixes the setcontext_link test on amd64.
PR: 194828
|
274626 |
17-Nov-2014 |
ngie |
Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with their #ifdef equivalents for everything changed in contrib/netbsd-tests. There are some items from the vendor tree that use #if defined(__FreeBSD__) or #if defined(__NetBSD__) which are being left alone
Requested by: bde, rpaulo Sponsored by: EMC / Isilon Storage Division
|
274601 |
16-Nov-2014 |
ngie |
- Skip over the testcases that call cbrtl on platforms where LDBL_PREC == 53 (arm, mips, powerpc). This fixes the build on these platforms, based on some ad hoc tinderbox runs I did a while ago - Skip cast the arguments to powl as long double so powl properly interprets those arugments at compile-time when picking the type
Sponsored by: EMC / Isilon Storage Division
|
274600 |
16-Nov-2014 |
ngie |
- Expect exp2_powers to fail on FreeBSD/i386 - Expect exp2_values to fail on FreeBSD due to the small epsilon
Sponsored by: EMC / Isilon Storage Division
|
274599 |
16-Nov-2014 |
ngie |
Alias isinff to isinf on FreeBSD
isinf on FreeBSD automatically picks the appropriate type per math.h
Sponsored by: EMC / Isilon Storage Division
|
274598 |
16-Nov-2014 |
ngie |
Reset errno to 0 before running scalbn to be sure that the tested errno is valid
Sponsored by: EMC / Isilon Storage Division
|
274597 |
16-Nov-2014 |
ngie |
Skip the long-double epsilon checks on FreeBSD/i386
Sponsored by: EMC / Isilon Storage Division
|
274579 |
16-Nov-2014 |
ngie |
Call sem_unlink on semaphores before attempting to create them
Due to the lack of uniqueness in the semaphore name, and the fact that the tests don't have cleanup routines, an interrupted test can leave a semaphore "laying around", causing all subsequent attempts to run the test to fail
I will file a NetBSD PR for this issue soon
|
274577 |
16-Nov-2014 |
ngie |
Add missing sys/time.h #include for timespecsub macro in lib/libnetbsd/sys/time.h
|
274576 |
16-Nov-2014 |
ngie |
Port helper program to FreeBSD, similar to ../../lib/libc/stdlib/h_atexit.c
Submitted by: pho In collaboration with: kib
|
274575 |
16-Nov-2014 |
ngie |
#ifdef out a printf on !NetBSD that causes the testcase to fail when comparing the output from the helper program
Submitted by: pho
|
274574 |
16-Nov-2014 |
ngie |
Add pthread_np.h #include and initialize the pthread attribute on FreeBSD
Submitted by: pho
|
274573 |
16-Nov-2014 |
ngie |
Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSD
PR: 191906 In collaboration with: pho
|
274572 |
16-Nov-2014 |
ngie |
Only expect timeouts on powerpc with NetBSD
Submitted by: pho
|
274571 |
16-Nov-2014 |
ngie |
Use _exit instead of exit so the file descriptors aren't flushed twice in the child processes
Submitted by: pho
|
274143 |
05-Nov-2014 |
ngie |
Expect lib.libc.sys.getcontext_test.setcontext_link to fail on amd64; add additional debugging to make the underlying problem more visible
Calling setcontext(2) on amd64 as shown in the test program is failing on amd64, not i386, with a return code of -1 and an errno of EINVAL
Further investigation is being done in the PR to determine the root cause for the failure
PR: 194828 Tested with the following configuration: - amd64/i386 - 11.0-CURRENT @ r273153 - 100 times in a tight loop as root with the following commands... -- kyua test lib/libc -- kyua test lib/libc/sys -- kyua test lib/libc/sys/getcontext_test
|
274142 |
05-Nov-2014 |
ngie |
Remove expected failure from lib.libc.sys.t_mincore:mincore_resid
The failure was added based on observation seen on 11.0-CURRENT @ r273153, not based on internal testing at EMC/Isilon
PR: 194829 Tested with the following configuration: - amd64/i386 - 11.0-CURRENT @ r273153 - 100 times in a tight loop as root with the following commands... -- kyua test lib/libc -- kyua test lib/libc/sys -- kyua test lib/libc/sys/mincore_test
|
274090 |
04-Nov-2014 |
ngie |
Fix the Jenkins test run by skipping the negative testcases earlier
The problem is that lib.libc.locale.t_io:bad_big5_wprintf was printing out illegal Unicode characters, which causes XML parsers to bail immediately, e.g.
% kyua report-junit > ~/report.junit % python2 -c 'import xml.dom.minidom as md; md.parse("/home/ngie/report.junit")' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/xml/dom/minidom.py", line 1918, in parse return expatbuilder.parse(file) File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse result = builder.parseFile(fp) File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile parser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 27137, column 13
|
274079 |
04-Nov-2014 |
ngie |
Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h was removed from the build
Pointyhat to: me (again, for not running make delete-old after running test builds)
|
274072 |
04-Nov-2014 |
ngie |
Finish off lib/libc/stdlib/t_strtod.c port by checking for "y" twice on FreeBSD, and always assume long long double exists on FreeBSD
Submitted by: pho
|
274067 |
03-Nov-2014 |
ngie |
rpc_control on FreeBSD is a public-ish API (not prefixed with __), not private like NetBSD
Submitted by: pho
|
274066 |
03-Nov-2014 |
ngie |
Port lib/libc/ssp to FreeBSD
In most cases, the buffers and data were resized, but when dealing with the helpers, some of the code was adjusted to fail more reliably
Submitted by: pho
|
274062 |
03-Nov-2014 |
ngie |
inet_network on FreeBSD returns NULL when provided "0x" to inet_network
Submitted by: pho
|
274061 |
03-Nov-2014 |
ngie |
Port t_db.sh to FreeBSD
- The blocksize on FreeBSD is 32kB, not 64kB - Add some detection for MK_DICT == no; /nonexistent is echoed along with atf_skip to ensure that the test will fail if dict(..) is called in the non-final stage of the pipeline
Submitted by: pho
|
273952 |
01-Nov-2014 |
ngie |
Port h_hash and t_sha2 to FreeBSD
t_sha2 contains dirty copy-paste hacks that need to be fixed with the openssh OpenBSD compat layer
Submitted by: pho
|
273951 |
01-Nov-2014 |
ngie |
Expect :sscanf_whitespace to fail on !NetBSD OSes
Submitted by: pho
|
273950 |
01-Nov-2014 |
ngie |
Skip :fopen_regular on !NetBSD because it's a NetBSD specific test
Submitted by: pho
|
273949 |
01-Nov-2014 |
ngie |
Add new atf_tc_expect_fail to fflush_err; this is a new (within the past couple months) bug
|
273948 |
01-Nov-2014 |
ngie |
Disable testcases 12 and 15-22 on FreeBSD
Submitted by: pho
|
273947 |
01-Nov-2014 |
ngie |
Expect :snprintf_posarg_error to blow up with a SIGSEGV on !NetBSD OSes
|
273946 |
01-Nov-2014 |
ngie |
Port h_atexit to FreeBSD
__cxa_atexit varies between FreeBSD and NetBSD, and thus we must use pointers instead of static fields in the BSS. More extensive discussion is included in the source code
In collaboration with: kib Submitted by: pho
|
273945 |
01-Nov-2014 |
ngie |
Port t_mincore to FreeBSD
Mark :mincore_resid as atf_tc_expect_fail on FreeBSD because of new bug discovered in running the tests (it succeeded from earlier on in the year to September/October on FreeBSD, at least)
Submitted by: pho
|
273943 |
01-Nov-2014 |
ngie |
Port t_kevent to FreeBSD
Submitted by: pho
|
273942 |
01-Nov-2014 |
ngie |
Skip :sethostname_basic because it messes up the test host's hostname
Convert code from #if defined(__FreeBSD__) to #ifdef __FreeBSD__
|
273938 |
01-Nov-2014 |
ngie |
getitimer on FreeBSD returns the last set time instead of the remaining time; test for that instead
Submitted by: pho
|
273937 |
01-Nov-2014 |
ngie |
Port lib/libc/sys/t_dup to FreeBSD/Linux
- The requirements differ between FreeBSD/Linux when dealing with oldd/newd being equal (both fail with EINVAL, not EBADF) - Add an EBADF testcase - Fix compilation issues on clang
In collaboration with: pho
|
273936 |
01-Nov-2014 |
ngie |
Port lib/libc/net/h_dns_server to FreeBSD
Submitted by: pho
|
273935 |
01-Nov-2014 |
ngie |
Port tests to FreeBSD/Linux
Some of the testcases don't work outside of NetBSD, and the behavior of ether_aton_r differs between FreeBSD, Linux, and NetBSD, and the calls to the API need to be massaged for FreeBSD and Linux.
Submitted by: pho
|
273933 |
01-Nov-2014 |
ngie |
Don't prune duplicate services in the expected output from /etc/services on FreeBSD
Submitted by: pho
|
273928 |
01-Nov-2014 |
jmmv |
Put mtree test files into a subdirectory.
Kyua 0.11 points TMPDIR to the test's work directory, and atf_check creates auxiliary files in TMPDIR. This confuses a couple of mtree tests that were using the work directory's root to validate the contents of the directory.
Fix the two affected tests by creating an auxiliary directory to use for the mtree tests. (Kyua should probably do this on its own; filed bug #133 upstream to take a look at this.)
|
273592 |
24-Oct-2014 |
ngie |
- Add sys/types.h for the APIs in sys/sysctl.h - Poke at VM_MIN_ADDRESS in machine/vmparam.h because FreeBSD doesn't have a vm.minaddress sysctl analog - Expect ENOMEM instead of EAGAIN in mlock_limits - Provide mlock an mmap'ed page twice to simulate MAP_WIRED on NetBSD
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273591 |
24-Oct-2014 |
ngie |
Correct my previous commit:
- getrusage_utime_back succeeds reliably on FreeBSD - getrusage_utime_zero passes/fails in a seemingly non-deterministic manner. Skip it for now (and fix it later)
In the initial port of this testcase to FreeBSD, the results failed reliably in the same manner as it does on NetBSD
Sponsored by: EMC / Isilon Storage Division
|
273579 |
24-Oct-2014 |
ngie |
- Mark signo __unused in the signal handler function - Effectively #if 0 out some code that does not fail on FreeBSD
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273578 |
24-Oct-2014 |
ngie |
- Add inttypes.h and stdint.h in lieu of int_limits.h from NetBSD - Use #include "h_macros.h" instead of relative path analog
Sponsored by: EMC / Isilon Storage Division
|
273574 |
24-Oct-2014 |
ngie |
- Test for EINVAL requirement when passing an invalid flag in to msync(2) - Expect ENOMEM instead of EFAULT when msync'ing a previously munmap'ed region on FreeBSD
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273572 |
24-Oct-2014 |
ngie |
- Ignore EINVAL check with mknod(path, S_IFCHR, -1) as the testcase is always executed on a non-devfs filesystem - Expect mknod(path, S_IFREG, 0) to fail on FreeBSD
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273540 |
23-Oct-2014 |
ngie |
Omit the mprotect_exec testcase on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
273539 |
23-Oct-2014 |
ngie |
Mark signum __unused
Sponsored by: EMC / Isilon Storage Division
|
273538 |
23-Oct-2014 |
ngie |
Fix a typo (__FreeBSD__ -> __NetBSD__ when omitting setrlimit_nthr)
|
273537 |
23-Oct-2014 |
ngie |
Add limits.h #include for SSIZE_MAX
Sponsored by: EMC / Isilon Storage Division
|
273536 |
23-Oct-2014 |
ngie |
Add limits.h #include for SSIZE_MAX
Sponsored by: EMC / Isilon Storage Division
|
273535 |
23-Oct-2014 |
ngie |
- Omit setrlimit_nthr testcase on FreeBSD (requires lwp.h, et al) - Expect overflow with rlim_max at INT64_MAX, not UINT64_MAX (rlim_t is int64_t on FreeBSD)
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273534 |
23-Oct-2014 |
ngie |
- Mark sig/signo __unused - Do not provide a relative path via #include "h_macros.h"
Sponsored by: EMC / Isilon Storage Division
|
273533 |
23-Oct-2014 |
ngie |
Use <atf_srcdir>/truncate_test.root_owned instead of /usr/bin/fpr as fpr does not exist on FreeBSD
truncate_test.root_owned will be generated at build time and owned by root
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273530 |
23-Oct-2014 |
ngie |
Add limits.h #include for INT_MAX
Sponsored by: EMC / Isilon Storage Division
|
273529 |
23-Oct-2014 |
ngie |
- Omit the poll testcases on FreeBSD (they require pollts) - Add necessary headers for the testcases
Sponsored by: EMC / Isilon Storage Division
|
273528 |
23-Oct-2014 |
ngie |
Mark signo __unused in handler(..)
Sponsored by: EMC / Isilon Storage Division
|
273527 |
23-Oct-2014 |
ngie |
Omit all of the testcases as revoke(2) is only implemented on devfs(5)
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273526 |
23-Oct-2014 |
ngie |
Omit the pollts testcases on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
273525 |
23-Oct-2014 |
ngie |
Port t_mmap.c to FreeBSD
- Add needed headers for the testcases - Omit mmap_block on non-NetBSD OSes - Use "security.bsd.map_at_zero" instead of "vm.user_va0_disable"
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273524 |
23-Oct-2014 |
ngie |
Add sys/socket.h #include for struct sockaddr_in
Sponsored by: EMC / Isilon Storage Division
|
273523 |
23-Oct-2014 |
ngie |
Add limits.h #include for LINE_MAX
Sponsored by: EMC / Isilon Storage Division
|
273522 |
23-Oct-2014 |
ngie |
- Mark unused parameters __unused in handler - Call sigqueue with getpid() instead of 0 -- the latter idiom appears to only be valid on NetBSD
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273521 |
23-Oct-2014 |
ngie |
Convert "fcntl(n, F_CLOSEM)" to "closefrom(n)"
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273520 |
23-Oct-2014 |
ngie |
Port t_pipe2.c to FreeBSD
- Omit the pipe2_nosigpipe testcase on FreeBSD (FreeBSD doesn't have O_NOSIGPIPE). - Convert "fcntl(n, F_CLOSEM)" to "closefrom(n)". - Save and restore the resource limit on the number of files (RLIMIT_NOFILE).
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273517 |
23-Oct-2014 |
ngie |
Expect getgroups_err to fail on FreeBSD
PR: 189941 Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273516 |
23-Oct-2014 |
ngie |
Add netinet/in.h for struct sockaddr_in
Sponsored by: EMC / Isilon Storage Division
|
273410 |
21-Oct-2014 |
ngie |
Add sys/socket.h #include for bind(2), et al
Sponsored by: EMC / Isilon Storage Division
|
273397 |
21-Oct-2014 |
ngie |
Port t_chroot to FreeBSD
- Add missing #include sys/stat.h for mkdir(2) - Omit the fchroot(2) tests because the support is not present on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
273396 |
21-Oct-2014 |
ngie |
unlink("/") fails with EISDIR instead of EBUSY on FreeBSD; test for that instead
Sponsored by: EMC / Isilon Storage Division
|
273395 |
21-Oct-2014 |
ngie |
Mark osi __unused so this compiles cleanly on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
273393 |
21-Oct-2014 |
ngie |
Port t_write to FreeBSD
- Mark the signo variable for the signal handle __unused - Use limits.h instead of sys/syslimits.h (the latter does not exist on FreeBSD)
Sponsored by: EMC / Isilon Storage Division
|
273391 |
21-Oct-2014 |
ngie |
Add missing #include for sys/stat.h for fchmod
Sponsored by: EMC / Isilon Storage Division
|
273390 |
21-Oct-2014 |
ngie |
libutil.h is required for fparseln on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
273389 |
21-Oct-2014 |
ngie |
Port lib/libc/gen/t_siginfo to FreeBSD
- mcontext_t on FreeBSD doesn't have a __gregs field (it's split out on FreeBSD into separate fields). In order to avoid muddying the test code with MD code, the debugging trace info has not been implemented - FreeBSD does not implement the si_stime and si_utime fields in siginfo_t, so omit the debugging code that dumps the values - sys/inttypes.h doesn't exist on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
273025 |
13-Oct-2014 |
ngie |
Change ATF_REQUIRE_MSG calls to ATF_CHECK_MSG to get as many errors as possible
t_strptime:common.. - Expect the testcase body as a whole to fail. Multiple PRs will be filed to track the issues (there are 18 check failures)
t_strptime:day.. - %EA and %OA seem to be case insensitive on FreeBSD
|
273024 |
13-Oct-2014 |
ngie |
Only test the return value in mktime_negyear
Testing for the errno is an optional requirement according to POSIX, and FreeBSD doesn't document that errno would be set on failure with mktime
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273023 |
13-Oct-2014 |
ngie |
__isnanl is automatically picked according to data type in <math.h>. There isn't a need for the explicit __isnanl test
Sponsored by: EMC / Isilon Storage Division
|
273022 |
13-Oct-2014 |
ngie |
Add #include <stdio.h> to get sys_nerr definition
Sponsored by: EMC / Isilon Storage Division
|
273021 |
13-Oct-2014 |
ngie |
Use 1 as a random seed, as recommended in srandom(3). Adjust the random values accordingly
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273020 |
13-Oct-2014 |
ngie |
memmem with NUL length "needle" (aka small) strings on FreeBSD/OSX returns NULL instead of the "haystack" value (aka big)
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273019 |
13-Oct-2014 |
ngie |
Do initial port of contrib/netbsd-tests/lib/libc/locale
t_io: - Expect failures potentially related to implementation-specific knowledge of the zh_TW.Big5 locale [*]
t_mbrtowc: - Handle unknown locales more gracefully (do not test if the locale doesn't exist) - Expect failure with mbrtowc_internal dealing with Japanese locales (potentially related to implementation detail knowledge of the ja_* locales) [*].
t_mbstowcs, t_mbtowc, t_wctomb: - Handle unknown locales more gracefully (do not test if the locale doesn't exist)
t_wcstod: - Treat FreeBSD like NetBSD and Linux in the XXX: FIXME section
[*] More investigation is required to determine the root cause of the failures
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
273017 |
13-Oct-2014 |
ngie |
Add #include <stdio.h> for printf
Sponsored by: EMC / Isilon Storage Division
|
273015 |
12-Oct-2014 |
ngie |
Expect nice_err to fail on FreeBSD with unprivileged users
PR: 189821 Sponsored by: EMC / Isilon Storage Division
|
273012 |
12-Oct-2014 |
ngie |
- Add libutil #include for fparseln - Change ATF_REQUIRE_EQ_MSG to ATF_CHECK_EQ_MSG to gather all failing results possible (currently 12 with leftassoc) - Mark leftassoc "atf_tc_expect_fail" on FreeBSD (PR coming soon after further analysis is done on the code)
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273011 |
12-Oct-2014 |
ngie |
Fix compilation errors with missing wide-type headers and fix compilation warnings with -Wformat
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
273010 |
12-Oct-2014 |
ngie |
Implement 64MB memory limit for test to ensure that it fails reliably in 600 seconds; it would previously fail inconsistently when run in some virtual machine configurations
This patch might need to be reverted or revisited later (see the attached PR for more details)
PR: 169302
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
272980 |
12-Oct-2014 |
ngie |
#include libutil.h for fparseln on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
272979 |
12-Oct-2014 |
ngie |
Only #include <sys/tls.h> on NetBSD
Sponsored by: EMC / Isilon Storage Division
|
272915 |
10-Oct-2014 |
ngie |
Port the testcase to FreeBSD
- Make #include path to h_macros.h a non-relative path - __gl_stat_t is synonymous with struct stat on FreeBSD - FreeBSD doesn't have _DIRENT_RECLEN - Skip over glob_star on FreeBSD (testcase doesn't pass)
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
272914 |
10-Oct-2014 |
ngie |
Skip over t_spawn_open_nonexistent_diag because it requires NetBSD specific additions to posix_spawn
Sponsored by: EMC / Isilon Storage Division
|
272910 |
10-Oct-2014 |
ngie |
SIGPWR does not exist on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
272909 |
10-Oct-2014 |
ngie |
Handle getting/setting niceness/priority correctly on FreeBSD vs NetBSD
This might be fallout from PR: 189821
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
272908 |
10-Oct-2014 |
ngie |
Disable the invalid pointer test on FreeBSD
FreeBSD segfaults on invalid pointers passed to getcwd because it throbs the address passed in in libc, whereas NetBSD just passes the information off to the syscall, which allows the kernel to return EFAULT on bad pointers.
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
272905 |
10-Oct-2014 |
ngie |
FreeBSD doesn't support strings greater than MAXHOSTNAMELEN-1 in {get,set}{domain,host}name. Adjust the tests to not exceed that value when testing out the code
Add a positive and negative test for MAXHOSTNAMELEN-1 and MAXHOSTNAMELEN, respectively
PR: 181127 In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
272903 |
10-Oct-2014 |
ngie |
FreeBSD returns ENOTTY instead of EBADF in ttyname_r; mark it as an expected failure
PR: 191936
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
272902 |
10-Oct-2014 |
ngie |
Add missing #include <sys/time.h> for gettimeofday
Sponsored by: EMC / Isilon Storage Division
|
272901 |
10-Oct-2014 |
ngie |
Disable tests that don't pass on FreeBSD due to missing support in humanize_number(3). Bringing in additional revisions from NetBSD's humanize_number(3) will fix the tests
Account for the fact that util.h on NetBSD is libutil.h on FreeBSD
Submitted by: pho Sponsored by: EMC / Isilon Storage Division
|
272891 |
10-Oct-2014 |
ngie |
Expect SIGSEGV in lib/libc/stdlib/t_getenv:setenv_basic
See bin/189805 for more details
In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
|
272890 |
10-Oct-2014 |
ngie |
Only build/run hsearch_basic and hsearch_r_basic on NetBSD
hdestroy1 is not present on FreeBSD
Sponsored by: EMC / Isilon Storage Division
|
272458 |
02-Oct-2014 |
ngie |
Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 , minus the vendor Makefiles
Provide directions for how to bootstrap the vendor sources in FREEBSD-upgrade
MFC after 2 weeks Discussed with: rpaulo Sponsored by: EMC / Isilon Storage Division
|
272345 |
01-Oct-2014 |
ngie |
Tag ^/base/vendor/NetBSD/tests/09.30.2014_20.45 from ^/base/vendor/NetBSD/tests/dist
Sponsored by: EMC / Isilon Storage Division
|
272343 |
01-Oct-2014 |
ngie |
Check in first src/tests snapshot from NetBSD anoncvs
Sources were obtained like so:
% export CVSROOT="anoncvs@anoncvs.NetBSD.org:/cvsroot" % cvs -z9 co -D "09/30/2014 20:45" -P src/tests % mv src/tests/* tests/dist/.
'*CVS*' has been added to svn:ignore to ease updating periodically from upstream
Some line ending issues had to be resolved with test outputs and scripts via dos2unix and by deleting the eol-style property set in usr.bin/sort
Discussed with: rpaulo Sponsored by: EMC / Isilon Storage Division
|