[BACK]Return to pending.dat CVS log [TXT][DIR] Up to [Development] / xfs-cmds / xfstests / dmapi / src / suite2 / data

File: [Development] / xfs-cmds / xfstests / dmapi / src / suite2 / data / pending.dat (download)

Revision 1.5, Wed Nov 9 02:50:19 2005 UTC (11 years, 11 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -29 lines

Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24329a by kenmcd.

//
// Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
//
// This test will use the following files:
//
ctf stf ls_to_copy set_region
--------------------------------------------
// These setup commands are run before the daemon starts.
// They reset the file structure of the test directory
// to a known state.
//
rm $real_dir/???
$1/ctf $1 $real_dir
$1/stf $1 $real_dir/l??
chown $lname $real_dir/l??
--------------------------------------------
@@ Pending test (1 of 5):
@@
// Run "pending" for the next 3 events,
// so that a non-blocking open_test
// will see EAGAIN three times before
// it can finish.
//
run_as_root
$1/send_msg pending_3
event_count 1
event[0] user
msg_str[0] pending_3
--------------------------------------------
@@ Pending test (2 of 5):
@@    (should fail)
@@
$1/open_test $2/ls1 o_rdwr o_nonblock
event_count 1
event[0] pending
tries_left[0] 2
failure
--------------------------------------------
@@ Pending test (3 of 5):
@@    (should fail)
@@
$1/open_test $2/ls1 o_rdwr o_ndelay
event_count 1
event[0] pending
tries_left[0] 1
failure
--------------------------------------------
@@ Pending test (4 of 5):
@@    (should fail)
@@
$1/open_test $2/ls1 o_rdwr o_nonblock o_ndelay
event_count 1
event[0] pending
tries_left[0] 0
failure
--------------------------------------------
@@ Pending test (5 of 5):
@@    (should succeed)
@@
$1/open_test $2/ls1 o_rdwr o_nonblock
event_count 1
event[0] read