chiark / gitweb /
sys/fdpass.c: Allocate extra cmsg space to hack around a Qemu bug.
[mLib] / sys / tests.at
index 8b7e39084a7708a6ca3390d2498b59c9dc1391ec..d5759bc8d53f565c6bc83dbec67cc3a879bd35e4 100644 (file)
 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 ### MA 02111-1307, USA.
 
+###--------------------------------------------------------------------------
+### fdpass
+
+AT_SETUP([sys: fdpass])
+AT_KEYWORDS([sys fdpass])
+
+fdpass=BUILDDIR/t/fdpass.t
+
+AT_CHECK([
+  $fdpass server sock&
+  while ! [[ -S sock ]]; do sleep 1; done
+  $fdpass client sock && wait])
+
+AT_CLEANUP
+
 ###--------------------------------------------------------------------------
 ### mdup
 
@@ -33,19 +48,19 @@ AT_KEYWORDS([sys mdup])
 mdup=BUILDDIR/t/mdup.t
 
 ## Very simple cases.
-$mdup 3:4
-$mdup 4:3
+AT_CHECK([$mdup 3:4])
+AT_CHECK([$mdup 4:3])
 
 ## Overlapping sources and destinations
-$mdup 4:3 3:5 5:6
+AT_CHECK([$mdup 4:3 3:5 5:6])
 
 ## Repeated sources
-$mdup 3:4 3:3 3:-1
-$mdup 5:8 3:4 3:5 4:6
+AT_CHECK([$mdup 3:4 3:3 3:-1])
+AT_CHECK([$mdup 5:8 3:4 3:5 4:6])
 
 ## Cycles
-$mdup 5:7 3:4 3:5 4:6 5:3
-$mdup 5:8 3:4 3:5 4:6 5:3
+AT_CHECK([$mdup 5:7 3:4 3:5 4:6 5:3])
+AT_CHECK([$mdup 5:8 3:4 3:5 4:6 5:3])
 
 AT_CLEANUP