tests: Fixes test-io-channel-file by mask only owner file state mask bits
commita92a783d263ea956d4b45035e224e73852916b7d
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 15 Sep 2020 17:12:27 +0000 (16 01:12 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 16 Sep 2020 10:15:07 +0000 (16 12:15 +0200)
tree374eacb644fe39e3abd2ab295072faf248f09c97
parentda0652c043c8014ed194a99a7989cc4b0093707e
tests: Fixes test-io-channel-file by mask only owner file state mask bits

This is the error on msys2/mingw
Running test test-io-channel-file
**
ERROR:../tests/test-io-channel-file.c:59:test_io_channel_file_helper: assertion failed (TEST_MASK & ~mask == st.st_mode & 0777): (384 == 438)
ERROR test-io-channel-file - Bail out! ERROR:../tests/test-io-channel-file.c:59:test_io_channel_file_helper: assertion failed (TEST_MASK & ~mask == st.st_mode & 0777): (384 == 438)

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200915171234.236-20-luoyonggang@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/test-io-channel-file.c