author | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-07-15 18:48:56 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-07-15 18:48:56 UTC |
parent | 240bb7d184774105ee394ed19e69e11109ea006d |
tests/behaviour/t_normal.py | +16 | -0 |
diff --git a/tests/behaviour/t_normal.py b/tests/behaviour/t_normal.py index 5a84e54..c5d608c 100644 --- a/tests/behaviour/t_normal.py +++ b/tests/behaviour/t_normal.py @@ -347,3 +347,19 @@ def test_n21(): fsck_verify(n) cleanup(n) +def test_n22(): + "jpread/jpwrite ~2mb" + c = gencontent(2 * 1024 * 1024 + 1465) + + f, jf = bitmp(jflags = libjio.J_LINGER) + n = f.name + + jf.pwrite(c, 2000) + assert content(n) == '\0' * 2000 + c + assert jf.pread(len(c), 2000) == c + del jf + + fsck_verify(n) + cleanup(n) + +