From: Vlad Apostolov Date: Mon, 28 Aug 2006 03:52:59 +0000 (+0000) Subject: pv 955274, rv bnaujok - add 1sec delay between file creation and changing its X-Git-Tag: v1.1.0~590 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4f2f54689999f494053a7ca45b3bc5d570bb558;p=xfstests-dev.git pv 955274, rv bnaujok - add 1sec delay between file creation and changing its attribute via dm_set_dmattr(). If the machine is too fast the ctime doesn't change between create and dm_set_dmattr() and the test fails. Merge of master-melb:xfs-cmds:26870a by kenmcd. pv 955274, rv bnaujok - add 1sec delay between file creation and changing its attribute via dm_set_dmattr(). If the machine is too fast the ctime doesn't change between create and dm_set_dmattr() and the test fails. --- diff --git a/dmapi/src/suite2/src/test_dmattr.c b/dmapi/src/suite2/src/test_dmattr.c index 5f025c79..7609800c 100644 --- a/dmapi/src/suite2/src/test_dmattr.c +++ b/dmapi/src/suite2/src/test_dmattr.c @@ -172,7 +172,7 @@ main( sprintf(command, "cp %s %s \n", ls_path, test_file); system(command); } - + sleep(1); /* SET loop */ for (i=0; i < num_iter; i++) { sprintf(test_file, "%s/DMAPI_attribute_test_file.%d",