Commit Graph

4100 Commits

Author SHA1 Message Date
christos
1f20091d65 no need for alloca() (breaks SSP) 2020-05-01 21:35:30 +00:00
isaki
e1f09352b2 Fix two tests.
- kqueue_mode_{RDONLY,RDWR}_READ: Fix expected value.
  This is rest of rev1.9.
- AUDIO_SETINFO_params_simul: Fix condition.
  This happens on full-duplex, not bi-directional.
These affect only standalone test, not atf.
2020-05-01 05:45:57 +00:00
thorpej
6809e70297 Oops, accidentally #if 0'd some tests, probably while debugging
something else.  Correct this silly mistake.
2020-05-01 01:44:30 +00:00
ryo
1da5a7c800 Add a test for sigaltstack(2) and SA_ONSTACK 2020-04-30 11:03:29 +00:00
thorpej
1a07681a27 - In uvm_voaddr_acquire(), take an extra hold on the anon lock obj.
- In uvm_voaddr_release(), if the anon ref count drops to 0, call
  uvm_anfree() rather than uvm_anon_release().  Unconditionally drop
  the anon lock, and release the extra hold on the anon lock obj.

Fixes a panic that occurs if the backing store for a futex backed by
an anon memory location is unmapped while a thread is waiting in the
futex.

Add a test case that reproduced the panic to verify that it's fixed.
2020-04-30 04:18:07 +00:00
riastradh
f3c622e1ff Make FUTEX_WAIT_BITSET(bitset=0) fail with EINVAL to match Linux. 2020-04-28 17:27:03 +00:00
thorpej
276ef22378 Add a NetBSD native futex implementation, mostly written by riastradh@.
Map the COMPAT_LINUX futex calls to the native ones.
2020-04-26 18:53:31 +00:00
maxv
8d6f67019a Add a test on the maximum number of slots. 2020-04-26 12:13:10 +00:00
maxv
4cc4c6ebbe Split in sub-tests for clarity, and add a new test, marked as expected
failure for now.
2020-04-26 11:56:38 +00:00
maxv
e497fc86e6 Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.
2020-04-26 09:08:40 +00:00
kre
0bcbd6c97f ATF runs shell script tests with "sh -e" (WHY???)
Compensate for that by adding an explicit test to a command so
-e will not kill the shell when the command (expectedly) fails.

Previously this was saved by /bin/sh disabling -e in command subs.
2020-04-24 14:29:19 +00:00
kamil
bac29421d5 Reduce assumptions about LWP numbers 2020-04-24 12:17:45 +00:00
thorpej
6fd6e9aadc Update for new LWP behavior -- as of 9.99.59, the LWP ID of a single-LWP
process is the PID, not 1.
2020-04-24 03:25:20 +00:00
joerg
422dd9f190 Replace noatf global with conditional compilation 2020-04-23 00:31:51 +00:00
joerg
f75c59c79e saved_output is owned by director.c 2020-04-23 00:30:08 +00:00
thorpej
d5cd44f45c Remove unit tests for the never-exposed _lwp_gettid(2). 2020-04-22 21:28:02 +00:00
joerg
4a60ab4bb4 Provide SHLIBINSTALLDIR explicitly as it defauls to /lib otherwise and
makes ld complain about the 64bit libc.
2020-04-20 12:08:08 +00:00
kre
d36f2da068 Define TESTSDIR even when not amd64 so the Atffile will be
installed in the correct location.
2020-04-19 18:07:00 +00:00
maxv
7ee848d944 Add tests for USER_LDT. 2020-04-19 13:22:58 +00:00
christos
a7c92d4c47 Oops, need the header too. 2020-04-18 17:45:16 +00:00
christos
37baba21c7 PR/55177: Carlo Arenas: mremap(MAP_REMAPDUP) fails after fork() 2020-04-18 17:44:53 +00:00
kamil
4aca7fab96 Switch from C11 specific static_assert() to __CTASSERT() 2020-04-17 22:53:52 +00:00
kamil
579da1aebb Add timeout to syscall_signal_on_sce that hangs from time to time 2020-04-14 22:37:24 +00:00
christos
97cf9247a5 make sure that 0 length files get their extattrs cleaned up on deletion
(there was an optimization to not call truncate if size == 0).
2020-04-12 23:52:20 +00:00
gson
ce24a0bfcd Double the timeout for the bn test case; 360 seconds is no longer
sufficient under qemu since the latest openssl update.
2020-04-11 16:55:33 +00:00
christos
34f2ea29f7 New extended attributes test (does not work until we commit kernel changes) 2020-04-10 22:58:47 +00:00
thorpej
98a9cebbb6 Add support for lazily generating a "global thread ID" for a LWP. This
identifier uniquely identifies an LWP across the entire system, and will
be used in future improvements in user-space synchronization primitives.

(Test disabled and libc stub not included intentionally so as to avoid
multiple libc version bumps.)
2020-04-04 20:20:12 +00:00
christos
a31f32280c Add path. 2020-04-02 00:00:16 +00:00
christos
49c579d18d more cleanup 2020-04-01 01:51:02 +00:00
christos
0dd6d756c6 factor out common code and set the path. 2020-04-01 01:49:26 +00:00
christos
2e16057d77 Enforce a standard path 2020-04-01 00:49:04 +00:00
christos
3763e8dd1d Some interfaces (gif) don't have a mac address... 2020-03-30 13:01:39 +00:00
isaki
1088ff9364 Add tests for poll(POLLIN) before read().
This affects only standalone test, not atf.
2020-03-26 13:43:10 +00:00
isaki
08c0ee5cd7 Sync with sys/dev/audio/audio.c rev1.65.
> Fix to start recording immediately when open() with READ mode is called.
This affects only standalone test, not atf.
2020-03-26 13:37:44 +00:00
isaki
05b122f3e6 Use exact match to search testname.
This didn't affect test results.
2020-03-25 13:07:04 +00:00
pgoyette
9c5430b66e These test cases should now succeed, after fixing rump kernel to handle
modules that establish their sysctls via SYSCTL_SETUP()
2020-03-21 04:50:21 +00:00
pgoyette
00ff0f5d11 Mark the swsensor tests "expected failure" since the rump world doesn't
seem to handle the SYSCTL_SETUP stuff.  PR kern/55088
2020-03-19 20:10:49 +00:00
ad
1912643ff9 Tweak the March 14th change to make page waits interlocked by pg->interlock.
Remove unneeded changes and only deal with the PQ_WANTED flag, to exclude
possible bugs.
2020-03-17 18:31:38 +00:00
roy
a6837a9b93 tests: ndp_rtm: Check correct source address in RTA_AUTHOR
Fixes PR kern/55074.
2020-03-15 21:15:25 +00:00
martin
e3d221ef2a Skip tests when we know there is not enough space available 2020-03-15 20:10:26 +00:00
martin
9fc99040ba Hardcode a check for ZFS and too little free space in workdir to skip
ZFS tests if the atf working directory is size restricted (ZFS has a
hardcoded minimal size of 64MB for a storage pool and 128 MB disk size).
2020-03-15 12:12:42 +00:00
martin
b46551040d Skip tests where the old or the new image size seem to not fit into
the working directory.
2020-03-15 11:17:59 +00:00
martin
581b9627a8 Skip this test if the atf working directory has not enough space
for the created image.
2020-03-15 10:15:16 +00:00
ad
37049e7a04 Catch up with reality. 2020-03-14 20:25:46 +00:00
rillig
cf957f51cb t_glob.c: clean up test code
In struct vfs_file, using an int as a boolean is an anachronism and has
been replaced with a single-character file type, like in ls(1).

Some other redundant test code has been removed as well since it was
either unreachable or existed only for performance reasons.
2020-03-13 23:27:54 +00:00
rillig
afe826aa59 t_glob.c: add test cases for hidden directory and file
The existing test code was geared towards every little bit of
performance. It even duplicated the file definitions in vfs_stat in order
to avoid a few strcmp calls. This made the test code fragile. Therefore,
vfs_stat has been rewritten completely to not duplicate any information
from the vfs.

In vfs_stat, the returned st_mode is now more realistic. It had been 0
before. The file mode is only logged when it makes sense. In the ENOENT
case it is not logged anymore.

The debug logging for opendir/closedir now logs the same pointer, so that
the corresponding calls can be matched easily. Failed vfs_opendir calls
are logged as well, to get a more complete picture of which callbacks are
called.
2020-03-13 22:58:31 +00:00
rillig
518b6dae2f t_glob.c: use distinct names for test structures
Before, the structures and functions defined by the test used the same
prefix as the code to be tested. This made it difficult to draw a line
between these parts.
2020-03-13 21:44:25 +00:00
rillig
7bf961318e t_glob.c: move expected globbing result directly into the test cases
This makes the tests more self-contained. The example directory tree that
is common to all the tests is still defined elsewhere, but in the same
file. Setting up the example directory structure in each test would make
the tests even more independent and read.
2020-03-13 20:48:33 +00:00
martin
0c2085b2fd Fix typo 2020-03-12 18:08:54 +00:00
martin
77fd0cba8e bsize_torture: skip bigger page size tests if space in the database
directory is limited (numbers pulled out of thin air).
2020-03-12 14:10:59 +00:00