summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix grep_test:recurse with ZFS and TMPFS tmpdirsasomers2016-01-271-0/+8
| | | | | | | | | | | | | 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
* Add debug output via ATF_REQUIRE_MSG when the first call tongie2016-01-271-1/+2
| | | | | | | | | | 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
* Adjust vm.max_wired in order to avoid hitting EAGAIN artificiallyngie2016-01-271-0/+137
| | | | | | | | | | | | | | | | | | | | | | | 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
* Use stable output to a test file instead of depending on the OS name beingngie2015-12-222-1/+14
| | | | | | | | | | | | 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
* Don't dump core files with lib/libc/ssp/ssp_test and lib/libc/gen/assert_testngie2015-12-222-0/+24
| | | | | | | | | | | | | 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
* Hack test so that it works on FreeBSD.rodrigc2015-12-011-2/+4
|
* Port contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSDngie2015-11-161-0/+19
| | | | | | | | | | | - 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
* Ignore EINTR from usleep(3) in try_locks(..)ngie2015-11-161-0/+3
| | | | | | | | | 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
* Expect all testcases dealing with invalid salts to fail on FreeBSDngie2015-11-161-0/+4
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Redo r290847: use #ifdef __NetBSD__ on all the non-public APIs tongie2015-11-151-12/+10
| | | | | | | | | | 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
* also skip the definition of ':fopen_regular' to avoid the build to fail due tobapt2015-11-151-0/+2
| | | | unused variables defined by ATF macros
* Cast xdr_void to xdrproc_t to mute -Wincompatible-pointer-types warnings fromngie2015-11-151-0/+6
| | | | | | | | | clang This pattern is used in other areas of lib/libc/rpc MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix -Wunused warnings with variables used unlit code by adding appropriate ↵ngie2015-11-152-0/+6
| | | | | | | | | #ifdef guards around the variables MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Push the FreeBSD changes under a specific #ifdef to easier tracking what needsbapt2015-11-021-0/+4
| | | | to be upstreamed.
* Fix regression test on multibytesbapt2015-11-021-1/+1
| | | | | 0x07FF and 0x0800 are valid multibyte characters: 'DOUBLE QUESTION MARK' and 'QUESTION EXCLAMATION MARK'
* Fix a set but not used variable warning flagged by gcc 4.9 withngie2015-10-301-2/+1
| | | | | | | lib/libc/ssp/h_readlink MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Ensure fdescfs is mounted on /dev/fd/ in the length testcasengie2015-10-181-0/+6
|
* Pass 8 arguments to makecontext on arm64 as this is all we support.andrew2015-10-011-0/+6
| | | | | Obtained from: EuroBSDCon Devsummit Sponsored by: ABT Systems Ltd
* Fix t_spawnattr test for attributes handling by posix_spawn(3).kib2015-09-011-27/+32
| | | | | | | | | | | | | | | | | | | | | 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
* Fix and re-enable UTF-8 tests.jilles2015-08-112-10/+6
|
* Reenable the test.bapt2015-08-111-1/+1
| | | | Sorry I was testing on the wrong branch.
* Disable broken test until we have time ti actually fix the testbapt2015-08-111-1/+1
|
* Fix warning of implicit declaration of function 'mkdir'.araujo2015-05-314-0/+12
| | | | | Differential Revision: D2662 Reviewed by: rodrigc, ngie
* memmem(3): empty little string matches the beginning of the big stringemaste2015-05-261-1/+1
| | | | | | | | | | | | 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
* The fmodl compat shims on arm/mips/powerpc aren't completengie2015-04-271-0/+6
| | | | | | | Disable the test code for now on those architectures MFC after: 1 week PR: 199422
* Add #include sys/types.h for register_t for mipsngie2015-04-251-0/+3
| | | | MFC after: 3 days
* nice(): Put back old return value, keeping [EPERM] error.jilles2015-02-281-0/+23
| | | | | | | | | | | 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
* nice(): Correct return value and [EPERM] error.jilles2015-02-221-28/+0
| | | | | | PR: 189821 Obtained from: NetBSD Relnotes: yes
* Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;cperciva2015-02-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* ttyname_r(): Return actual error, not always [ENOTTY].jilles2015-02-011-3/+0
| | | | | | | Adjust the test that used to fail because of this bug. PR: 191936 MFC after: 1 week
* Revert r277357 as expr has been enhanced to better detect overflow conditions,ngie2015-01-281-3/+0
| | | | | | | | | and now the tests pass PR: 196867 X-MFC with: r277798 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Enable utimensat tests from NetBSD.jilles2015-01-241-0/+3
| | | | As with other tests from c063, a required #include <sys/stat.h> was missing.
* Expect :overflow to fail with FreeBSD's expr as it doesn't have stringentngie2015-01-191-0/+3
| | | | | | | overflow checks like NetBSD's expr does MFC after: 3 days PR: 196867
* Fix lib/libthr/tests/detach_testngie2015-01-171-1/+15
| | | | | | | | | | | | - 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
* Expect :arithmetic_ops_body to fail with syntax errors on FreeBSDngie2015-01-041-0/+3
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Link lib/libc/c063 tests to the build.jilles2015-01-024-0/+12
| | | | | | | | | | | 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
* Don't install h_raw if dealing with clang 3.5.0+ to unbreak the tests2 Jenkinsngie2015-01-021-0/+3
| | | | | | | | | | | 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
* Reset errno in :scalbnf_val and :scalbnl_val before running the tests so thengie2015-01-021-0/+6
| | | | | | | | tested errno isn't stale This was needed in order for the test to pass on amd64 with stable/10 MFC after: 3 days
* Expect access_test:access_inval to fail before __FreeBSD_version == 1100033ngie2014-12-301-0/+5
| | | | | 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
* Add __FreeBSD_version guards around hsearch_r to ease MFCing the code tongie2014-12-211-1/+5
| | | | | | stable/10 It was added when __FreeBSD_version was ~1100027
* Only pass 6 arguments to the 'run' function on amd64. amd64'sjhb2014-11-251-14/+10
| | | | | | | makecontext on FreeBSD only supports a maximum of 6 arguments. This fixes the setcontext_link test on amd64. PR: 194828
* Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) withngie2014-11-1752-109/+109
| | | | | | | | | 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
* - Skip over the testcases that call cbrtl on platforms where LDBL_PREC == 53ngie2014-11-161-0/+8
| | | | | | | | | (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
* - Expect exp2_powers to fail on FreeBSD/i386ngie2014-11-161-0/+9
| | | | | | - Expect exp2_values to fail on FreeBSD due to the small epsilon Sponsored by: EMC / Isilon Storage Division
* Alias isinff to isinf on FreeBSDngie2014-11-161-0/+4
| | | | | | isinf on FreeBSD automatically picks the appropriate type per math.h Sponsored by: EMC / Isilon Storage Division
* Reset errno to 0 before running scalbn to be sure that the tested errno isngie2014-11-161-0/+3
| | | | | | valid Sponsored by: EMC / Isilon Storage Division
* Skip the long-double epsilon checks on FreeBSD/i386ngie2014-11-161-0/+2
| | | | Sponsored by: EMC / Isilon Storage Division
* Call sem_unlink on semaphores before attempting to create themngie2014-11-161-0/+6
| | | | | | | | 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
* Add missing sys/time.h #include for timespecsub macro in ↵ngie2014-11-163-0/+12
| | | | lib/libnetbsd/sys/time.h
* Port helper program to FreeBSD, similar to ../../lib/libc/stdlib/h_atexit.cngie2014-11-161-0/+20
| | | | | Submitted by: pho In collaboration with: kib
OpenPOWER on IntegriCloud