Commit Graph

2592 Commits

Author SHA1 Message Date
dholland
6970e57cc6 When evaluated on a Sunday, "next Sunday" means 7 days in the future,
not 14. When evaluated on a Monday, it apparently means 13 days in the
future. There's not exactly a spec for parsedate.y, so conform to the
implementation.

PR 50574.

XXX: to me at least this is an odd notion of "next Sunday", but whatever...
2015-12-31 10:18:00 +00:00
dholland
9775679d6b Fix the "Tuesday midnight" test to match what parsedate.y does; in
particular it doesn't add a week if evaluating that on Wednesday.

Whether that's right is an open question, but there's not exactly a
spec for parsedate.y and there's no point having the test fail one
day in seven.

PR 50574.
2015-12-31 10:10:15 +00:00
christos
585297dcfb more robust ulimit test that works with most variants of bourne shells. 2015-12-30 22:24:44 +00:00
pgoyette
8125537222 Since we're expecting to autoload modules here, make sure that the
kernel (or rump-server) has autoload enabled.

This should finish fixing PR bin/49153

XXX The test still does not run successfully, due to another bug that
XXX was recently introduced.  This second bug is being worked on.
2015-12-29 07:17:19 +00:00
pgoyette
7e70dfdc14 Remove a left-over debugging variable. Fix the build. 2015-12-27 08:21:44 +00:00
pgoyette
bc9ef90a7d I was right - the output from gpt(8) did grow an extra space character!
Fix the test to expect it.  Test now passes on my local test bed.
2015-12-27 06:53:48 +00:00
pgoyette
738ca054ba When MODULAR kernels grew a MODULAR_DEFAULT_AUTOLOAD option, (in rev 1.98
of src/sys/kern/kern_module.c), the default was "off" for all kernels
including rump kernels.  While many (most?) kernel config files were
updated to include the new option, rump kernels weren't so lucky.  Thus,
rump kernels still had autoload disabled.

This commit uses rump_sysctl to change the module_autoload_on value to
true (ie, enabled) before trying to test if autoloading actually works.

For now, I am _not_ changing the default for all rump kernels.  I'll
leave that for another day, after all appropriate discussion has occurred.
2015-12-27 06:36:36 +00:00
pgoyette
9328be7df7 Revert - tested using wrong test case. :( 2015-12-27 01:50:39 +00:00
pgoyette
a161b63780 Update test - the attributes listed by the show command now have a space
in the comma-separated list.

This allows the test to once again pass.
2015-12-27 01:46:24 +00:00
pgoyette
5e02285975 Remove the "expected failure" from test n12, and change it not to use
the "-v" command line option to ipf_test.  The -v option causes it to
display additional information, some of which is not fixed (looks like
an internal data structure address).

One fewer on the expected-failures list.  :)
2015-12-26 08:01:58 +00:00
pgoyette
0bfb85b87f For the skipped ARC4 test, don't bother trying to run the test clean-up
code.  It runs rump.halt which returns an error status (since rump was
never started in the first place), and this causes atf to complain about
the cleanup routine's return status, logging the test as a failure!
2015-12-26 07:10:03 +00:00
ozaki-r
a9e6d8e441 Add some tests for sysctl net.inet.ip.*
- net.inet.ip.redirect
- net.inet.ip.directed-broadcast (and net.inet.icmp.bmcastecho)
- net.inet.ip.ttl

From suzu-ken@IIJ (with tweaks by me)
2015-12-25 08:22:28 +00:00
christos
63d557bad4 Use the original nfsd. 2015-12-23 18:42:23 +00:00
christos
b9bb57fc06 ggr, make debug static. I hate that the copy of this and the original
source has diverged so much!
2015-12-23 18:10:39 +00:00
christos
f0a61ce65f add get_net.c 2015-12-23 18:10:10 +00:00
christos
c31efcafe9 add __TEST_FENV 2015-12-22 14:27:51 +00:00
christos
7303bfa77d Add __TEST_FENV 2015-12-22 14:25:58 +00:00
christos
b113b9aa9c put have fenv stuff elsewhere. 2015-12-22 14:20:59 +00:00
christos
25e32ca777 Put have fenv elsewhere. 2015-12-22 14:18:35 +00:00
martin
5e88931036 Sync list of fenv enabled architectures again (PR 48633), this time for mips
addition.
2015-12-22 08:26:16 +00:00
martin
b66d985812 While PR 48633 is not properly fixed, keep the additional lists of
fenv-enabled architectures in sync.
2015-12-21 12:11:23 +00:00
knakahara
50f2e9d4c0 Refactor. No functional change. 2015-12-16 03:24:29 +00:00
ozaki-r
561514840d Add more tests for IPv6 link-local addresses
The tests include a test for PR 50549.
2015-12-15 01:33:08 +00:00
christos
8861b14877 Kill one more REL_DEBUG, from kre 2015-12-08 12:41:28 +00:00
knakahara
5ff0670ba7 add gif test for set_tunnel/delete_tunnel and recursion calls check 2015-12-08 05:56:18 +00:00
christos
da8d5d2ae7 there is no REL_DEBUG 2015-12-07 20:57:39 +00:00
christos
432cd4b9b7 new tests from kre 2015-12-07 20:52:46 +00:00
knakahara
674e3a0ad1 remove extra shebang and fix a potentially bug 2015-12-07 09:59:26 +00:00
christos
1580202168 Add test for type, set, unset 2015-12-06 00:38:30 +00:00
christos
ce40c86d4c more variables 2015-12-05 18:53:29 +00:00
christos
a1fb78d5a0 file shuffling 2015-12-05 18:52:11 +00:00
christos
ac8087a5ab Add a migration test 2015-12-05 18:45:35 +00:00
christos
cf8c4fce6c Add biosboot test 2015-12-05 14:23:41 +00:00
christos
6c37bffdde Oops + 2015-12-04 20:16:23 +00:00
christos
2d4dd9611a remove extra 2015-12-04 18:53:35 +00:00
christos
11ff782d8f Add gpt tests 2015-12-04 17:19:33 +00:00
christos
20fc3c3567 Add remove partition data file 2015-12-04 17:15:39 +00:00
christos
a50907f634 Add label change tests 2015-12-04 17:15:21 +00:00
christos
1d371e5267 Add resize data files 2015-12-04 16:59:57 +00:00
christos
2663264cc4 Add resize test. 2015-12-04 16:59:39 +00:00
christos
b109d7f5a9 Make the test work 2015-12-04 01:42:47 +00:00
christos
0a47105b38 checking multiple things does not work! atf-bug! 2015-12-04 01:21:12 +00:00
christos
893a65c28f I wrote that 2015-12-04 01:06:43 +00:00
christos
c68ecf1926 Add some gpt tests 2015-12-04 01:06:17 +00:00
ozaki-r
88c8544847 Make checks strict
rump.arp should fail with File exists (EEXIST).
2015-12-02 06:05:14 +00:00
christos
7b88a1a0ea fix double negation 2015-11-27 13:59:40 +00:00
ozaki-r
bb7b9eed2e Add fastforward6 test 2015-11-24 02:37:33 +00:00
ozaki-r
911c3d16a0 Set timeout of ping to reduce execution time 2015-11-20 05:05:40 +00:00
ozaki-r
216db65823 Set timeout of ping6 to reduce execution time 2015-11-19 10:45:09 +00:00
christos
2bfc5fd1e4 Add more exhaustive db tests that include higher bucket sizes 2015-11-18 18:35:35 +00:00
ozaki-r
b86b70a179 Don't assign unused IP address
It sometimes creates an unexpected NDP cache.
2015-11-18 04:13:01 +00:00
ozaki-r
d54fcc93ce Add tests for GC of neighbor caches 2015-11-17 06:44:13 +00:00
ozaki-r
3b8b75374e Add tests of IPv6 link local address
From s-yamaguchi@IIJ
2015-11-12 05:05:24 +00:00
ozaki-r
9b59cf7aa1 Fix up the header
Remove unnecessary shebang and add missing keyword expansion,
copyright and license.
2015-11-12 05:01:28 +00:00
ozaki-r
3637fb5284 Add tests for RA
From s-yamaguchi@IIJ (with some tweaks by me)
2015-11-11 07:52:57 +00:00
christos
e700dcfbcd CID 1338516: Handle svc_run() returning. 2015-11-10 18:13:01 +00:00
christos
d0b55fb388 Use the regular mountd, and include the rpcbind stuff here. 2015-11-08 21:05:39 +00:00
christos
871846c79a Disable debugging. 2015-11-08 19:40:06 +00:00
christos
5c8014d159 Add more rpc tests. XXX: Need rpcbind running. 2015-11-08 19:38:04 +00:00
christos
8ca6a9a5c9 Use the regular rpcbind source now. 2015-11-08 16:38:56 +00:00
christos
72e6585119 Don't use POLL again. 2015-11-08 16:38:25 +00:00
christos
4172446a74 Remove dup copy of rpcbind sources that had grown stale. 2015-11-08 16:37:57 +00:00
christos
eda86e9458 make this work with the new fdset stuff. 2015-11-08 02:45:16 +00:00
nros
2e84975f5e Fix code style errors pointed out by christos during the review of the
aligned_alloc test that also applies to the posix_memalign test.
Fix code style errors that I forgot to fix in the aligned_alloc test.
2015-11-07 17:35:31 +00:00
nros
b16a5c9dec Add the C11 function aligned_alloc to libc. 2015-11-07 16:21:42 +00:00
christos
b2d56358fc make this compile for tests. 2015-11-06 15:30:47 +00:00
christos
6e1ae27534 Add a test for the raw transports which are currently busted. 2015-11-06 15:23:23 +00:00
ozaki-r
3eb9896334 Improve test stability
"deprecated" flag may not be reflected immediately. We need to add some
delay before checking the result.
2015-11-06 02:54:37 +00:00
martin
f5cad80b32 Ooops, pilot error - revert last 2015-11-05 10:43:42 +00:00
martin
2f1599bef8 Fix expected output to match -current NetBSD reality (port "255" is not
mapped to "reserved")
2015-11-05 10:35:58 +00:00
ozaki-r
a6c882931d Add tests for ifconfig parameters
From s-yamaguchi@IIJ
2015-11-05 02:57:36 +00:00
knakahara
9875a0c6a0 add basic if_gif tests to ATF. 2015-11-05 00:02:59 +00:00
christos
4e4836ff83 merge more the tests 2015-10-31 02:25:11 +00:00
christos
3112bb3e23 Account for J, fix %Z 2015-10-31 02:13:41 +00:00
christos
a45df95937 tests for %Z 2015-10-30 18:25:49 +00:00
ginsbach
862d86e79e ISO 8601 and RFC 3339 specify that an offset can be up to 23:59 and
not 12:00 east/west.  Just proves that one shouldn't use other
implementations as a canonical reference.  Thanks to all who pointed
this out.
2015-10-30 03:18:10 +00:00
ginsbach
2699ccd14e Additional tests for timezone offsets. 2015-10-30 01:51:15 +00:00
christos
05ea9f0e38 Add tests for %z 2015-10-29 17:48:20 +00:00
christos
9ca3dc7d85 remove debugging test 2015-10-18 18:27:25 +00:00
christos
3075d03889 add code to dump the mbuf contents 2015-10-18 18:26:55 +00:00
christos
40c99df3a6 Add an anonymous struct test 2015-10-14 16:32:55 +00:00
ozaki-r
44c97db88f Add tests for assigining/deleting IP addresses
The tests help to find defects related to creation/deletion
of routes/llentries and assigning/deleting of IP addresses.
2015-10-07 05:24:41 +00:00
uebayasi
8b6b28e153 Catch up with the current, generated Makefile format. 2015-10-04 07:59:47 +00:00
ozaki-r
3f3bb7d2ee Add delay to improve stability of test 2015-09-30 06:08:36 +00:00
ozaki-r
837fd81e06 Let ftp use a different output file from httpd's one
Previously the target file served by httpd and the output file of ftp
were identical (both index.html) on the filesystem.
2015-09-29 08:27:24 +00:00
ozaki-r
dacbac7968 Add simple tests for fastforward
The tests just do TCP communication via HTTP GET.
2015-09-28 01:54:14 +00:00
ozaki-r
c656a96f13 Improve test stability
ifconfig -a -v after ifconfig -a -z is expected to show '0 packets' for
all interface. However, shmif0 can receive packets between the two
operations. So we have to keep shmif0 down during such tests.
2015-09-15 09:51:01 +00:00
ozaki-r
f2a7b1339e Add tests for IPv6 ICMP redirect
Note that tests for redirect timeout doesn't work for now due to
PR kern/50240.

From s-yamaguchi@IIJ (with some fixes and tweaks by ozaki-r)
2015-09-14 05:22:56 +00:00
christos
200d779b75 make error more informative. 2015-09-12 15:21:33 +00:00
martin
4c5334afe3 Add two test cases that should cover PR 50228. 2015-09-11 09:25:52 +00:00
dholland
814554f5b1 Clear the XFAIL from PR 45391. 2015-09-08 05:24:27 +00:00
ozaki-r
cc31cfa669 Add tests to check if nexthop route lookup works
These tests reproduce a panic on assertion "ro->_ro_rt ==NULL ||
ro->_ro_rt->rt_refcnt > 0" failure that had been fixed.
2015-09-04 05:24:57 +00:00
ozaki-r
933f94aa13 Add tests for ifconfig options
From s-yamaguchi@IIJ (with some tweaks by me)
2015-09-03 10:22:52 +00:00
ozaki-r
0dac802154 Reflect the current ARP cache implementation in tests
net.inet.arp.prune and net.inet.arp.refresh were obsoleted.
2015-08-31 08:08:20 +00:00
ozaki-r
4e97073b73 Add tests for ICMP redirect timeout 2015-08-31 06:16:08 +00:00
dholland
796a8727a3 Remove rubbish. 2015-08-30 18:27:26 +00:00
dholland
aeaad94cd5 Fix glaringly wrong indent. 2015-08-29 19:19:43 +00:00
martin
c36c18165c Mark the ssh test as expected failure pointing to PR lib/50174 2015-08-26 09:19:20 +00:00
ozaki-r
67b961d3c9 Give a chance to send a DAD announce packet
ifconfig -w ensures IP addresses have left tentative state, however,
it doesn't guarantee that a DAD announce packet is sent. The kernel
clears tentative flag and then sends the packet so that ifconfig -w
can return before the kernel sends the packet.
2015-08-25 02:24:34 +00:00
ozaki-r
1a07436188 Disable another tentative state check
It's too ephemeral to check robustly.
2015-08-24 02:02:25 +00:00
christos
7ec9eaaab4 another wait test. 2015-08-23 07:15:16 +00:00
christos
fddcbf3df7 don't abuse %m in printf
fix error messages
2015-08-21 14:19:10 +00:00
ozaki-r
c8aae55351 Make a test a bit easy
Accept just 24h of expiration time in addition to 24h - a few seconds.
2015-08-18 00:58:35 +00:00
ozaki-r
c75b32f0a0 Improve test stability
A test for ndp -c was sometimes failed because between the deletion
and the check NS/NA messages were exchanged and a NDP cache was
recreated unexpectedly. To provent this situation, we do ifconfig
shmif0 down of the peer before the test, so the test won't be
interfered by the messages.
2015-08-17 07:47:21 +00:00
ozaki-r
e266b2d0dd Improve test stability
- Take a diff between packet dumps and use it for packet checking
  - it's resistant against packet reorder
- Seep 2 sec to make sure a NS message is sent
- Disable tentative state check for now
  - it's too ephemeral to check robustly
2015-08-17 07:06:58 +00:00
ozaki-r
14dcf9ff75 Reflect a fix on rt_refcnt
The test was adjusted based on wrong behavior.
2015-08-13 10:22:21 +00:00
ozaki-r
3e44abc850 Fix head and cleanup definitions for cache_expiration tests 2015-08-10 09:32:01 +00:00
ozaki-r
94e6f63fa9 Fix cleanup 2015-08-10 09:31:13 +00:00
ozaki-r
17bcc6ffef Check MAC address of ARP caches additionally 2015-08-07 05:32:12 +00:00
ozaki-r
7284c53128 Use rump.ping6 instead of ping6 with rumphijack(3) 2015-08-07 00:50:12 +00:00
ozaki-r
1f31785d33 Add basic tests for IPv6 Address Lifetime Expiry 2015-08-06 08:23:14 +00:00
ozaki-r
2179c9b76f Check the output of ndp -d strictly 2015-08-04 07:43:25 +00:00
ozaki-r
2f55a7d3ed Add tests for NDP 2015-08-03 09:54:20 +00:00
ozaki-r
25711fd317 Return 0 explicitly to avoid unexpected failures when $DEBUG=false 2015-07-31 10:16:36 +00:00
ozaki-r
6abe86b9fd Add tests of cache overwriting 2015-07-31 02:39:12 +00:00
ozaki-r
bf665d2f84 Add tests for temp option 2015-07-31 02:35:09 +00:00
ozaki-r
5d6a850962 Remove remaining debug code 2015-07-31 00:23:54 +00:00
ozaki-r
5e8861aca5 Fix cleanup; halt all running rump_servers 2015-07-31 00:22:44 +00:00
ozaki-r
7a175f4063 Add tests for arp -a option 2015-07-30 08:41:18 +00:00
ozaki-r
3fd3aaa9ea Fix TESTS_SH assignment 2015-07-30 05:43:42 +00:00
ozaki-r
0f1639b8cc Add tests for IPv4 DAD 2015-07-30 02:52:53 +00:00
ozaki-r
b4bfe1a892 Add tests for GARP 2015-07-30 02:51:05 +00:00
christos
862f3563b3 new test 2015-07-29 18:26:15 +00:00
ozaki-r
8fd2ad14ac Add tests for ARP
Forgot to commit this. Should fix the build.
2015-07-29 12:05:10 +00:00
ozaki-r
d4516589be Add tests for ARP 2015-07-29 06:10:09 +00:00
christos
198668b6a8 new c99 init test found by xorg's Iconify.c 2015-07-28 18:05:19 +00:00
ozaki-r
7dd2779b49 Reflect a fix for bridge
Due to PR 48104, some tests of ping/ping6 were failed but the tests now
should be successful. So reverse atf_check.

Bonus: the fix for PR 48104 also fixes another uknown failure.
2015-07-23 11:05:34 +00:00
matt
8827b899dc Build t_fpgetmask/t_fpgetround for aarch64 since they are now in libc 2015-07-08 01:09:25 +00:00
christos
ca074ef647 strptime now sets tm_yday 2015-07-04 13:36:25 +00:00
christos
6aa5718835 new test. 2015-07-01 15:36:44 +00:00
ozaki-r
5fbfc68952 Add tests of interface creation/destruction 2015-07-01 08:33:31 +00:00
pooka
aba7ab9c93 Check that PTHREAD_RWLOCK_INITIALIZER works. 2015-06-26 11:07:20 +00:00
christos
df32205700 - don't create a db file.
- add more tests.
2015-06-22 22:35:51 +00:00
christos
88fc59697b Add new failing test. 2015-06-22 19:06:05 +00:00
matt
b9e582e94c Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined. 2015-06-22 00:05:23 +00:00
ozaki-r
95529645e4 Add missing cleanup 2015-06-10 03:29:37 +00:00
ozaki-r
978c966b4f Add tests for bridge members with an IP address
The tests include checks for PR#48104 which is not fixed yet.

Note that one test unexpectedly fails for some reason
(unrelated to PR#48104). We have to fix it somehow.
2015-06-09 00:39:53 +00:00
joerg
810e0f52bb Don't pass uninitialized variables by value. 2015-06-06 13:14:06 +00:00
ozaki-r
11f40b0843 Check if tests surely failed with TTL exceeded 2015-06-02 07:32:50 +00:00
ozaki-r
b420830aee Improve stability of route_flags_xresolve tests
Insert delays to give route monitor a chance to complete its work.
2015-06-01 01:36:30 +00:00
ozaki-r
8192754c00 Disable test_ping_failure which is conducted before setup_bridge
It randomly fails (esp, often on a slow or loaded machine) due to
PR kern/49219, so disable it for now.

I forgot why I didn't include the test when I committed the test
at first and wrongly added it at v1.4.
2015-05-29 10:08:52 +00:00
ozaki-r
3030e5a0ee Bump timeout for ping and ping6 to 5 sec
Hope the wait is enough for slow machines, e.g., qemu/anita/i386.
2015-05-29 02:06:46 +00:00
ozaki-r
2f78640437 Get rid of unnecessary shebang
It will be added when it's built.
2015-05-29 01:54:56 +00:00
ozaki-r
5fd5216cf8 Make the test stable under load or when running on a slow machine
Let sender and receiver synchronize explicitly via a socketpair
and don't rely on sleep.
2015-05-28 10:19:17 +00:00
ozaki-r
92795cceb3 Detail an error message 2015-05-28 08:32:53 +00:00
kefren
8b3cf81fd9 Add another simple MPLS test but using this time a mixed IPv4/IPv6 LSR
This test encapsulates IPv6 packets, pass them over MPLS to an IPv6
neighbour that switches label and passes forward to an IPv4
neighbour. There, the IPv6 packet is decapsulated and passed to IPv6 stack
For the return path we test both implicit and explicit null encapsulations
2015-05-27 18:13:14 +00:00
kefren
60a33c5ba8 Add a simple IPv6/MPLS test 2015-05-27 16:40:33 +00:00
ozaki-r
148b6434a5 Add timeout to ping6 positive tests too
For when they fail.
2015-05-27 01:12:04 +00:00
ozaki-r
8a6480b1eb Run mcast tests on rump kernels
The tests on anita qemus failed due to that the host network environment
didn't meet the tests.

The change makes the tests independent from host environments
and the tests will pass on any environments including anita qemus.

Discussed on tech-kern and tech-net.
2015-05-26 00:42:07 +00:00
ozaki-r
8255dae8f6 Fix specifying an interface for IPV6_JOIN_GROUP
Using always an interface of index=1 is not good idea; it varies
depending on runtime environments. We can use index=0 instead,
which allows the kernel to pick an appropriate interface for mcast.
2015-05-25 07:17:17 +00:00
christos
87847627ce Add a VIS_NOLOCALE test 2015-05-23 14:02:11 +00:00
christos
f845fc8e2c MKRUMP=no fixes (Robert Swindells) 2015-05-20 17:39:04 +00:00
ozaki-r
458add7bf4 Add tests for XRESOLVE flag 2015-05-20 01:30:42 +00:00
ozaki-r
4203465ea1 Handle child's exit status precisely 2015-05-19 04:14:04 +00:00
ozaki-r
f3005e6ac8 Use EXIT_FAILURE instead of 1 2015-05-19 03:19:27 +00:00
ozaki-r
2754f5946a Add tests for route flags 2015-05-18 06:27:04 +00:00
ozaki-r
d43069ef3e KNF
Tweaks of whitespaces and tabs.
2015-05-18 00:55:09 +00:00
ozaki-r
bdf24ea091 Save errno for errx 2015-05-17 15:48:57 +00:00
ozaki-r
9fbb6a243a Enable IPv6 negative tests
As ping6 timeout feature (-X option) is added, we can do negative
tests without wasting time.

1 sec delay is added after network setup to avoid false positives.
2015-05-16 14:29:37 +00:00
martin
07b432ed22 Before pinging, wait for addresses to come out of tentative state 2015-05-13 12:01:24 +00:00
ozaki-r
a8d41e5542 Add basic tests for IP forwarding 2015-05-13 10:04:44 +00:00
christos
2a8cfbd271 one t in literal. 2015-05-11 19:37:51 +00:00
christos
94ac2a41a2 add one more test 2015-05-11 17:21:32 +00:00
pgoyette
95bd0f4ec1 Use correcet variable name when printing the error code. 2015-05-07 06:23:23 +00:00
pgoyette
9f8be6380b Don't fail if open() of sysmon devices returns ENODEV. This can
occur if sysmon subcomponents are not included in the kernel and
autoloading of modules is not allowed or not supported.
2015-05-07 01:35:35 +00:00
martin
39780a1ced Cosmetics: hide an error message from sysctl (machdep.cpu_brand is not
available on most architectures)
2015-05-04 10:57:17 +00:00
christos
35d355f3ea - new test for strtoi
- namespace protection for strto{i,u}
- separate manpages for strto{i,u} from the ones for strto{u,}l
From: Kamil Rytarowski
2015-05-01 14:17:56 +00:00
ginsbach
7b940a5b54 Add hour tests as a standalone test case. 2015-04-28 16:06:09 +00:00
pgoyette
7f8653d8a0 Include better diagnostic info when a required key value cannot be retrieved from envstat -x 2015-04-23 23:23:28 +00:00
pgoyette
8f2064710d When exiting, provide a reason. 2015-04-23 04:49:37 +00:00
ginsbach
0b61b786a1 Make century and year conversion tests a standalone test case rather than
part of the "common" test case.
2015-04-22 13:15:30 +00:00
ginsbach
fb89bad2cc Make seconds conversion tests a standalone test case rather than
part of the "common" test case.
2015-04-21 17:39:50 +00:00
ginsbach
a5f68193b1 Add more detail to test descriptions. 2015-04-17 15:13:47 +00:00
riastradh
d1c2f2cc13 Use <sys/rndio.h> for rnd ioctls. 2015-04-13 22:24:34 +00:00
riastradh
03d306e2dd Apparently I fixed t_unpriv:zfs_owner and didn't notice. 2015-04-09 19:51:13 +00:00
riastradh
3d61be1880 Advisory locking for zfs. 2015-04-09 19:47:05 +00:00
ginsbach
679713aac4 Split inet_addr(3) tests from t_inet_network into stand-alone t_inet_addr,
so that t_inet_network only contains tests for inet_network(3).
2015-04-09 16:47:56 +00:00
riastradh
bc95daf1f6 Fix vattr_init_mask: mode is mode_t, not u_short.
Fixes fs/vfs/t_vnops:zfs_attrs test.
2015-04-09 05:32:53 +00:00
riastradh
d0319a8396 Tests claim rename(..., "x/.") yields EISDIR, so do that. Fixes zfs. 2015-04-09 05:03:58 +00:00
riastradh
8aa34a7d8b Fix return code of rmdir(nonempty) in zfs: ENOTEMPTY, not EEXIST. 2015-04-09 05:02:28 +00:00
rtr
cefecbaa6b fix typo bindinging -> binding 2015-04-05 23:28:10 +00:00
rtr
f0da3f110d add another test program for connect(2) that checks that connect fails
with EAFNOSUPPORT (similar to the bind test) if the domain of the socket
does not match the address family of the supplied address.

test currently fails as it should
2015-04-05 23:17:41 +00:00
rtr
a954fb5823 - ATF_REQUIRE(EINVAL == errno);
+       ATF_REQUIRE(EAFNOSUPPORT == errno);

as per http://pubs.opengroup.org/onlinepubs/009695399/functions/bind.html

while here remove some unnecessary initialization of port and addr members
and replace with a comment explaining why.
2015-04-05 23:15:54 +00:00
martin
4839e0f0d8 New test program for bind(2), with a single (currently eroneously failing)
test case from Tyler Retzlaff.
2015-04-05 06:36:52 +00:00
riastradh
a26f29c67f Fix remaining read(fd, NULL, 1) cases. 2015-04-04 12:34:44 +00:00
christos
a2bce09441 add test for typename as a function param 2015-04-03 21:37:26 +00:00
chopps
3fe0ea9c96 - Add new tests for -c check flag in resize_ffs 2015-03-29 19:37:02 +00:00
matt
1380094dbb add return_one_start 2015-03-29 00:38:36 +00:00
riastradh
a9b674d150 Let I/O errors override inode update errors in UFS.
Fixes tests/fs/vfs/t_io:read_fault for UFS.
2015-03-28 17:45:47 +00:00
riastradh
7fc64193c5 This doesn't affect p2k_ffs after all, no idea why yet. 2015-03-28 16:39:31 +00:00
riastradh
9707ebf68d Test that read fails with EFAULT even if O_SYNC|O_RSYNC are set. 2015-03-28 16:17:25 +00:00
matt
6084fd3ca0 Update for new RISCV ABI 2015-03-28 07:07:54 +00:00
riastradh
8c0065db93 Make this run in NetBSD 6 by using st_mtimespec instead of st_mtim.
st_mtimespec is our traditional nonstandard name for what POSIX
called st_mtim in 2008, but these aren't going to run in non-NetBSD
anyway so using the nonstandard name shouldn't be an issue.
2015-03-24 23:24:55 +00:00
riastradh
1674867715 zfs tests don't actually need privileges. 2015-03-24 23:22:47 +00:00
isaki
ec31227c02 one more white space -> tab. 2015-03-21 05:50:19 +00:00
isaki
47f8b9c01c Rewrite ilog2's test. PR lib/49745.
- 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-21 05:32:07 +00:00
prlw1
a0b4c35b18 correct test name 2015-03-16 16:42:27 +00:00
isaki
787a0efa5b white space -> tab. 2015-03-14 07:23:46 +00:00
isaki
6abe86a4fd Reduce the number of loops.
It avoids timeout on slow machines, and I think that 100,000
times loop also satisfies the evaluation.
PR lib/49664 (no comments)
2015-03-07 09:59:15 +00:00
martin
0c9e453b20 Make sure to use the values calculated in the loop that is supposed to crash
the client process - so the compiler does not optimize it all away.
Also improve diagnostic in case of common bug: SIGSEGV instead of SIGBUS.
2015-02-28 13:57:08 +00:00