Mercurial > hg > octave-kai > gnulib-hg
annotate modules/utimens-tests @ 12469:8b48f88c47f1
test-utimens: avoid spurious failure
Fixes a spurious failure on ext3, with one-second resolution,
now that ctime effects are being tested for inequality.
* tests/test-chown.h (nap): Factor...
* tests/nap.h: ...into new file.
* tests/test-lchown.h (nap): Avoid duplication.
* tests/test-utimens-common.h (nap): Use shared implementation,
necessary on file systems with 1-second resolution.
* modules/chown-tests (Files): Include new file.
* modules/fdutimensat-tests (Files): Likewise.
* modules/futimens-tests (Files): Likewise.
* modules/lchown-tests (Files): Likewise.
* modules/openat-tests (Files): Likewise.
* modules/utimens-tests (Files): Likewise.
* modules/utimensat-tests (Files): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 21 Dec 2009 07:00:13 -0700 |
parents | d47887220b68 |
children | a48d3d749ca5 |
rev | line source |
---|---|
12156 | 1 Files: |
12469
8b48f88c47f1
test-utimens: avoid spurious failure
Eric Blake <ebb9@byu.net>
parents:
12316
diff
changeset
|
2 tests/nap.h |
12156 | 3 tests/test-futimens.h |
12158
899dd13e9f8b
utimens: add lutimens interface
Eric Blake <ebb9@byu.net>
parents:
12156
diff
changeset
|
4 tests/test-lutimens.h |
12156 | 5 tests/test-utimens.h |
12171
47c9f1788846
test-stat-time, test-utimens: improve portability
Eric Blake <ebb9@byu.net>
parents:
12160
diff
changeset
|
6 tests/test-utimens-common.h |
12156 | 7 tests/test-utimens.c |
8 | |
9 Depends-on: | |
12158
899dd13e9f8b
utimens: add lutimens interface
Eric Blake <ebb9@byu.net>
parents:
12156
diff
changeset
|
10 symlink |
12156 | 11 timespec |
12316
d47887220b68
usleep: use it to simplify tests
Eric Blake <ebb9@byu.net>
parents:
12171
diff
changeset
|
12 usleep |
12156 | 13 utimecmp |
14 | |
15 configure.ac: | |
16 | |
17 Makefile.am: | |
18 TESTS += test-utimens | |
19 check_PROGRAMS += test-utimens | |
12160
d0732ed2dd55
utimens: add UTIME_NOW and UTIME_OMIT support
Eric Blake <ebb9@byu.net>
parents:
12158
diff
changeset
|
20 test_utimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@ |