Commit graph

9 commits

Author SHA1 Message Date
David van Moolenbroek
701f2b4dd5 VFS: select(2) fixes
- check each file descriptor's open access mode (filp_mode);
- treat an error returned by a character driver as a select error;
- check all filps in each set before finishing select;
- do not copy back file descriptor sets if an error occurred;
- remove the hardcoded list of supported character major devices,
  since all drivers should now be capable of responding properly;
- add tests to test40 and fix its error count aggregation.

Change-Id: I57ef58d3afb82640fc50b59c859ee4b25f02db17
2014-03-01 09:04:51 +01:00
Ben Gras
5977114c42 tests cleanup
. make common.o link with the tests instead of being
	  #included as common.c
	. fix warnings about missing prototypes by declaring functions
	  static
	. reduces some duplicated code

Change-Id: Ic2a765d7f5886add5863190efec3fdd2d2ea2137
2013-04-17 22:00:59 +00:00
Thomas Veerman
827daf1fca Make test40 behave
Make test40 behave better. It should create its own subdirectory to
conduct its tests and should not write to /tmp. Also, the master-slave
terminal pair it tries to open might be in use; it should try to obtain
another pair. These changes allow the test to be run multiple times
simultaneously from different paths (to test select() more intensively).
2011-04-21 13:18:00 +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
Ben Gras
58f428a704 throw out two time consuming tests 2008-10-01 15:09:33 +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
9865aeaa79 Initial revision 2005-04-21 14:53:53 +00:00