summaryrefslogtreecommitdiff
path: root/tests/include
AgeCommit message (Collapse)Author
2020-05-31Mask NULL + 0 LLVM UBSan reports in the ATF test: t_pslist.ckamil
Pass -fno-delete-null-pointer-checks for Clang for the MKSANITIZER/MKLIBCSANITIZER build
2020-03-08PR standards/44921: Add errno consts for robust mutexesmgorny
Add the two missing errno.h constants: EOWNERDEAD and ENOTRECOVERABLE. While technically they're used for robust mutexes which we do not support at the moment, they are listed in POSIX and used by libc++. While libc++ can be made to build without it, it just locally redefines the values then, so we may as well define them globally.
2020-03-01Centralize the base rump libraries into a variable used by all the otherchristos
Makefiles so that we can make changes to it centrally as needed and have less mess. Fixes the sun2 build that needs rumpvfs after librump after the latest changes.
2019-12-01Adapt <sys/pslist.h> to use atomic_load/store_*.riastradh
Changes: - membar_producer(); *p = v; => atomic_store_release(p, v); (Effectively like using membar_exit instead of membar_producer, which is what we should have been doing all along so that stores by the `reader' can't affect earlier loads by the writer, such as KASSERT(p->refcnt == 0) in the writer and atomic_inc(&p->refcnt) in the reader.) - p = *pp; if (p != NULL) membar_datadep_consumer(); => p = atomic_load_consume(pp); (Only makes a difference on DEC Alpha. As long as lists generally have at least one element, this is not likely to make a big difference, and keeps the code simpler and clearer.) No other functional change intended. While here, annotate each synchronizing load and store with its counterpart in a comment.
2019-10-06use memcpy() for non C-strings.mrg
2019-05-13Get rid of all the -lrumpdev and -lrumpvfs that are no longer neededbad
after moving rump's mainbus from rumpdev to rumpkern. Produces the same atf-run results as before.
2019-02-03- add or adjust /* FALLTHROUGH */ where appropriatemrg
- add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
2018-07-25Avoid undefined behavior in an ATF test: t_bitopskamil
Do not change the signedness bit with a left shift operation. Switch to unsigned integer to prevent this. t_bitops.c:189:9, left shift of 1 by 31 places cannot be represented in type 'int' Detected with micro-UBSan in the user mode.
2018-07-25Avoid undefined behavior in an ATF test: t_typeskamil
Replace UB with implementation defined logic to check whether ssize_t can wrap to a negative number. t_types.c:63:7, signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int' Detected with micro-UBSan in the user mode.
2017-10-02Update recently-added test to adapt to new signature of LIST_MOVE()pgoyette
2017-10-02Add a new minimalistic test for LIST_MOVE to verify that the list'spgoyette
first entry's prev pointer correctly points to the listhead. This test will fail until a fix for LIST_MOVE is checked in (soon).
2017-01-13Don't play with "../.." in includes for h_macros.h; deal with it centrally.christos
Minor fixes.
2016-08-08We now need librumpdev to resolve rumpns_config_cfdriver_attach whichpgoyette
is now used in a bunch of network modules/components
2016-04-09Introduce pserialize-safe linked lists.riastradh
These are like LIST_* from queue(3), but issue the appropriate memory barriers for pserialize readers and writers. Discussed on tech-kern: https://mail-index.netbsd.org/tech-kern/2016/04/03/msg020365.html
2016-04-08Make this list diff- and sort-friendlier.riastradh
No functional change.
2016-03-16rework to avoid new GCC 5.3 errors and improve readabilitymrg
2016-01-23Define _KERNTYPES for things that need it.christos
2015-06-22Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined.matt
2015-05-07Use correcet variable name when printing the error code.pgoyette
2015-05-07Don't fail if open() of sysmon devices returns ENODEV. This canpgoyette
occur if sysmon subcomponents are not included in the kernel and autoloading of modules is not allowed or not supported.
2015-03-21one more white space -> tab.isaki
2015-03-21Rewrite ilog2's test. PR lib/49745.isaki
- Reorganize ilog2_basic to ilog2_32bit, ilog2_64bit and ilog2_const. ilog2_const is compile-time test for __builtin_constant_p() part of current ilog2() implementation. - Remove fully meaningless ilog2_log2. So this part of PR misc/44767 is no longer present.
2015-03-14white space -> tab.isaki
2015-02-272 seconds is too small as timeout on slow machines, bump to 10 (my hppamartin
needs ~5).
2014-11-04PR misc/49356 remove unnecessary references to atf-c/config.hjustin
The function included via this header is not used and is removed in later versions of atf, so let us avoid it.
2014-02-09Use compiler builtins instead of atf_arch and atf_machine.jmmv
The atf_arch and atf_machine configuration variables were removed from atf-0.19 without me realizing that some tests were querying them directly. Instead of reintroducing those variables, just rely on compiler builtins as many other tests already do. Should fix PR bin/48582.
2013-10-19fix unused variable warningschristos
2013-10-19initialize variableschristos
2013-09-05socket(-1, SOCK_CLOEXEC, 0); followed by the process exiting (i.e.pooka
fd slot does not get initiailized before fd_free()) cases a diagnostic kernel panic.
2013-09-05Fix two tests for typefit: constants larger than LLONG_MAXgsutre
do not fit in a signed long long.
2012-12-07use __BITMAP_TYPEchristos
2012-12-04Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs.jruoho
2012-08-08Exclude tests that use rumpchristos
2012-06-03Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) tojoerg
depend on new devname_r(3) as heart. Add /dev/pts magic directly to devname(3). While it can lead to returning non-existing paths, the behavior is more consistent that way. Drop caching layer in devname(3), it doesn't buy anything for the common case of having access to the database. Teach devname(3) proper fallback behavior of scanning /dev. Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-03-25Use array accessjoerg
2012-03-23Use SCHAR_{MIN,MAX} for signed char, not CHAR_* since not char are signed.matt
2012-03-18test the __type macroschristos
2012-03-18To be on the safe side, use the category/number notation when referring tojruoho
PRs (otherwise third-party sed-scripts might miss the references). Also remove white-space.
2012-03-17this does not fail anymorechristos
2011-11-06Skip the test on sparc and point to PR port-sparc/45580.jruoho
2011-11-05Add printfs to see where TNF's qemu/sparc fails.jruoho
2011-10-31No need to keep on trying when this fails in the expected manner. Wepgoyette
really don't need to have 32k failures. OK jruoho@
2011-10-02remove stray underscore.christos
2011-10-01disable test on the vax until we fix it.christos
2011-09-30Add expected failures for Qemu.jruoho
2011-09-27Define _PATH_CPUCTL.jruoho
2011-08-29Remove some cruft that is no longer needed.jruoho
2011-08-29Remove Xfails that are related to the infamous qemu/amd64 floating pointjruoho
bugs. It appears to be quite difficult to identify the exact Qemu version and setup. These do not fail on the TNF's qemu/amd64 setup, which can be taken as a reference point for expected failures.
2011-08-12Need root for /dev/power.riastradh
2011-07-23putter_fop_stat(): set st_mode to S_IFCHR.hannken
Fixes PR #44807: something broken in stat(2).