Commit graph

194 commits

Author SHA1 Message Date
Erik van der Kouwe
9dda815067 Remove redundant line from previous patch 2009-09-04 13:36:43 +00:00
Erik van der Kouwe
e1e4d6649f Allow setuid tests 11 and 33 to run. The former still fails (but now with a meaningful error) while the latter succeeds. Only 2 tests are left borken on default MINIX, namely 11 and 28. 2009-09-04 13:18:49 +00:00
Erik van der Kouwe
5cdd995dc5 Use su to allow tests 3, 6, 17, 18, 19, 21 and 25 to work as root, making testing easier 2009-08-18 19:58:34 +00:00
David van Moolenbroek
ff6318d559 run test 41, too (oops) 2009-08-15 22:31:38 +00:00
David van Moolenbroek
323f0abdd6 Support for setitimer(ITIMER_VIRTUAL/ITIMER_PROF). New test (41) for setitimer. 2009-08-15 21:37:26 +00:00
David van Moolenbroek
062bb2c1e8 fix test14's "clever" (broken) filename generation 2009-08-15 15:13:57 +00:00
Thomas Veerman
df41717f44 Fixed case error 2009-07-22 08:59:57 +00:00
Thomas Veerman
70d25344a2 Added select test 2009-07-14 09:43:33 +00:00
David van Moolenbroek
f15d1fb13d Fix race condition in test 25 2009-07-09 11:44:35 +00:00
David van Moolenbroek
f76d75a5ec Various VFS and MFS fixes to improve correctness, consistency and
POSIX compliance.

VFS changes:
* truncate() on a file system mounted read-only no longer panics MFS.
* ftruncate() and fcntl(F_FREESP) now check for write permission on
  the file descriptor instead of the file, write().
* utime(), chown() and fchown() now check for file system read-only
  status.

MFS changes:
* link() and rename() no longer return the internal EENTERMOUNT and
  ELEAVEMOUNT errors to the application as part of a check on the
  source path.
* rename() now treats EENTERMOUNT from the destination path check as
  an error, preventing file system corruption from renaming a normal
  directory to an existing mountpoint directory.
* mountpoints (mounted-on dirs) are hidden better during lookups:
  - if a lookup starts from a mountpoint, the first component has to
    be ".." (anything else being a VFS-FS protocol violation).
  - in that case, the permissions of the mountpoint are not checked.
  - in all other cases, visiting a mountpoint always results in
    EENTERMOUNT.
* a lookup on ".." from a mount root or chroot(2) root no longer
  succeeds if the caller does not have search permission on that
  directory.
* POSIX: getdents() now updates directory access times.
* POSIX: readlink() now returns partial results instead of ERANGE.

Miscellaneous changes:
* semaphore file handling bug (leading to hangs) fixed in test 32.

The VFS changes should now put the burden of checking for read-only
status of file systems entirely on VFS, and limit the access
permission checks that file systems have to perform, to checking
search permission on directories during lookups. From this point on,
any deviation from that spceification should be considered a bug.
Note that for legacy reasons, the root partition is assumed to be
mounted read-write.
2009-05-18 11:27:12 +00:00
Ben Gras
58f428a704 throw out two time consuming tests 2008-10-01 15:09:33 +00:00
Ben Gras
007bb33c7d Make test 17 use dir 17 2007-09-11 14:56:48 +00:00
Ben Gras
9581f1596f explanations with common test3 errors. 2007-04-02 16:00:06 +00:00
Ben Gras
f84653d908 Default amount of memory for tests (some ran out of memory) 2006-10-25 13:35:03 +00:00
Ben Gras
e61522402a More fixes to reality 2006-03-16 01:47:52 +00:00
Ben Gras
ffd98d1b91 Fix test to match reality 2006-03-15 10:32:23 +00:00
Ben Gras
18df4cb859 Improved test constant 2006-03-07 15:44:00 +00:00
Ben Gras
7475a433bb Test fixes
Added test41, for endpoint macros
2006-03-01 15:28:07 +00:00
Ben Gras
1b28ca47b1 . changed MAXOPEN's from statics to (OPEN_MAX-3)
(test broke after increasing OPEN_MAX)
. changed s_nokill to s_nokill_stop
  (test broken as SIGSTOP isn't maskable)
2006-02-13 11:07:21 +00:00
Jorrit Herder
cdc790c4da Fixed problem in subtest 1; Part of test is now in #if DEAD_CODE ... #endif,
because test setup seems bogus.
2005-10-05 11:28:12 +00:00
Ben Gras
0f8e902692 np if test not made (clean error) 2005-09-22 14:04:50 +00:00
Ben Gras
d969f7b4bc 8<->37
29<->38
20<->39
2005-09-19 13:44:31 +00:00
Ben Gras
d0d8010415 Swap test8 and test37 2005-09-19 13:39:27 +00:00
Ben Gras
23623d1e56 Fix *.sh and run modes 2005-09-12 11:53:22 +00:00
Ben Gras
a17d7c827b Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
Ben Gras
1569a60360 . swapped test26 and test40
. renamed sh*.sh to testsh*.sh
. invoked shell tests from run script like the other test commands
  (that was the point of renaming)
2005-08-08 14:30:50 +00:00
Ben Gras
5789f7abec config version bumped to 307; NOT cvs tagged yet; misc fixes 2005-08-05 19:19:18 +00:00
Ben Gras
73847b7d50 *** empty log message *** 2005-08-05 16:48:44 +00:00
Ben Gras
2888e14ed8 pty select test 2005-08-05 13:47:12 +00:00
Ben Gras
38987ff79a SIGSTOP being in _NSIG nowadays caused test8 to break - fixed. 2005-07-24 14:06:42 +00:00
Ben Gras
398119f873 Another test case for select - ptys (when implemented) 2005-07-19 16:03:39 +00:00
Ben Gras
42050e39f8 kernel and servers send diagnostic messages to IS; IS sends them to TTY
and the new log driver if enabled.

new usyslogd is started from /usr/etc/rc. New device created by
MAKEDEV.sh. /var/log created by etc/mtree/minix.tree (on root for
now). Made select() slightly more generic, with less code duplication.
2005-07-08 17:30:01 +00:00
Ben Gras
6f02e00837 Fixed sh2.sh test 2005-06-27 09:41:38 +00:00
Ben Gras
400169e960 select-test-set compile fixes. 2005-06-19 23:13:57 +00:00
Ben Gras
ed2a024d47 Select test-set imported from the minix contributions, with permission
to modify and distribute from Jose Manuel Gomez, the author
(jmgomez@linuxmail.org).
2005-06-17 13:45:40 +00:00
Jorrit Herder
8621d392b0 Fixed typo in run output;
Reduced NR_ITERATIONS for tests dealing with MAX_LINKS.
2005-06-17 08:51:28 +00:00
Jorrit Herder
bb2ef4e039 Added welcome message to POSIX test suite. 2005-06-07 11:52:35 +00:00
Ben Gras
dcffa17db2 this test breaks on the new pre-i/o i/o buffer check. it wants to read
more than its buffer allowed, so it is reasonable that it breaks. reducing
read request size 'fixes' it.
2005-05-24 14:57:45 +00:00
Jorrit Herder
ccd17ecfed New NOTIFY system call! Queued at kernel. Duplicate messages (with same source
and type) are overwritten with newer flags/ arguments. The interface from
within the kernel is lock_notify(). User processes can make a system call with
notify(). NOTIFY fully replaces the old notification mechanism.
2005-05-24 10:06:17 +00:00
Ben Gras
821dfb06ed Minor fixes. (Skip test 28 LINK_MAX links generation, it takes too long.) 2005-05-17 08:40:32 +00:00
Ben Gras
9d93a8eade changed [skip]ped tests to start working, even with the large LINK_MAX 2005-05-09 13:39:23 +00:00
Ben Gras
4590b95041 Hide messages about install (changing stack+data size) 2005-05-09 08:52:21 +00:00
Ben Gras
6e01ae62ed rename run.sh to run (ast) 2005-05-09 08:44:55 +00:00
Ben Gras
9865aeaa79 Initial revision 2005-04-21 14:53:53 +00:00