summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* #ifdef out a printf on !NetBSD that causes the testcase to fail when comparingngie2014-11-161-0/+2
| | | | | | the output from the helper program Submitted by: pho
* Add pthread_np.h #include and initialize the pthread attribute on FreeBSDngie2014-11-161-0/+7
| | | | Submitted by: pho
* Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSDngie2014-11-161-0/+4
| | | | | PR: 191906 In collaboration with: pho
* Only expect timeouts on powerpc with NetBSDngie2014-11-161-0/+12
| | | | Submitted by: pho
* Use _exit instead of exit so the file descriptors aren't flushed twice in thengie2014-11-161-0/+8
| | | | | | child processes Submitted by: pho
* Expect lib.libc.sys.getcontext_test.setcontext_link to fail on amd64; addngie2014-11-051-0/+14
| | | | | | | | | | | | | | | | | | | 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
* Remove expected failure from lib.libc.sys.t_mincore:mincore_residngie2014-11-051-3/+0
| | | | | | | | | | | | | | 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
* Fix the Jenkins test run by skipping the negative testcases earlierngie2014-11-041-9/+11
| | | | | | | | | | | | | | | | | 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
* Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after ↵ngie2014-11-0414-40/+22
| | | | | | | | atf-c/config.h was removed from the build Pointyhat to: me (again, for not running make delete-old after running test builds)
* Finish off lib/libc/stdlib/t_strtod.c port by checking for "y" twice onngie2014-11-041-1/+7
| | | | | | FreeBSD, and always assume long long double exists on FreeBSD Submitted by: pho
* rpc_control on FreeBSD is a public-ish API (not prefixed with __), not privatengie2014-11-031-0/+4
| | | | | | like NetBSD Submitted by: pho
* Port lib/libc/ssp to FreeBSDngie2014-11-035-1/+199
| | | | | | | 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
* inet_network on FreeBSD returns NULL when provided "0x" to inet_networkngie2014-11-031-0/+4
| | | | Submitted by: pho
* Port t_db.sh to FreeBSDngie2014-11-031-0/+20
| | | | | | | | | - 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
* Port h_hash and t_sha2 to FreeBSDngie2014-11-012-0/+34
| | | | | | | t_sha2 contains dirty copy-paste hacks that need to be fixed with the openssh OpenBSD compat layer Submitted by: pho
* Expect :sscanf_whitespace to fail on !NetBSD OSesngie2014-11-011-0/+4
| | | | Submitted by: pho
* Skip :fopen_regular on !NetBSD because it's a NetBSD specific testngie2014-11-011-0/+2
| | | | Submitted by: pho
* Add new atf_tc_expect_fail to fflush_err; this is a new (within the past ↵ngie2014-11-011-0/+4
| | | | couple months) bug
* Disable testcases 12 and 15-22 on FreeBSDngie2014-11-011-1/+16
| | | | Submitted by: pho
* Expect :snprintf_posarg_error to blow up with a SIGSEGV on !NetBSD OSesngie2014-11-011-0/+10
|
* Port h_atexit to FreeBSDngie2014-11-011-0/+34
| | | | | | | | | __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
* Port t_mincore to FreeBSDngie2014-11-011-0/+21
| | | | | | | | 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
OpenPOWER on IntegriCloud