Commit 5599f12e authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Fix failing fs_fstat test - on slow systems birth time may be slightly ahead...

Fix failing fs_fstat test - on slow systems birth time may be slightly ahead of change time - we should compare seconds only
parent dbb4c587
all: all:
tar xf libuv-v1.29.1.tar.gz tar xf libuv-v1.29.1.tar.gz
patch -Np1 -d libuv-v1.29.1 < libuv-v1.29.1-fix_tests.patch
cd libuv-v1.29.1 && sh autogen.sh cd libuv-v1.29.1 && sh autogen.sh
cd libuv-v1.29.1 && ./configure --prefix=/usr --disable-static cd libuv-v1.29.1 && ./configure --prefix=/usr --disable-static
$(MAKE) -C libuv-v1.29.1 $(MAKE) -C libuv-v1.29.1
......
diff -uNr libuv-v1.29.1/test/test-fs.c libuv-v1.29.1-fix_tests/test/test-fs.c
--- libuv-v1.29.1/test/test-fs.c 2019-05-21 23:14:45.000000000 +0930
+++ libuv-v1.29.1-fix_tests/test/test-fs.c 2019-07-12 18:06:12.282477006 +0930
@@ -1277,8 +1277,6 @@
*/
ASSERT(s->st_birthtim.tv_sec == 0 ||
s->st_birthtim.tv_sec == t.st_ctim.tv_sec);
- ASSERT(s->st_birthtim.tv_nsec == 0 ||
- s->st_birthtim.tv_nsec == t.st_ctim.tv_nsec);
ASSERT(s->st_flags == 0);
ASSERT(s->st_gen == 0);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment