summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/matrix/matrix_test.go8
-rw-r--r--tests/reverse/correctness_test.go8
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index 2542844..5e536b3 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -873,3 +873,11 @@ func TestAccess(t *testing.T) {
t.Error("X_OK should have failed")
}
}
+
+func TestStatfs(t *testing.T) {
+ var st syscall.Statfs_t
+ syscall.Statfs(test_helpers.DefaultPlainDir, &st)
+ if st.Bsize == 0 {
+ t.Errorf("statfs reports size zero: %#v", st)
+ }
+}
diff --git a/tests/reverse/correctness_test.go b/tests/reverse/correctness_test.go
index 6b7ed5f..78c9c4b 100644
--- a/tests/reverse/correctness_test.go
+++ b/tests/reverse/correctness_test.go
@@ -249,3 +249,11 @@ func Test0100Dir(t *testing.T) {
}
fd.Close()
}
+
+func TestStatfs(t *testing.T) {
+ var st syscall.Statfs_t
+ syscall.Statfs(dirB, &st)
+ if st.Bsize == 0 {
+ t.Errorf("statfs reports size zero: %#v", st)
+ }
+}