diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-04-10 17:22:00 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-04-10 17:22:00 -0700 |
commit | 52a2a21c1cdefb241aa0e43b9e0b0a027f6dc511 (patch) | |
tree | 6b7c4e48c8442d951e6eaffb2359732a0ed30844 /subx/apps/handle | |
parent | fdf84d43d1b1e7f2adf246663af2e3daf9600786 (diff) | |
download | mu-52a2a21c1cdefb241aa0e43b9e0b0a027f6dc511.tar.gz |
5074
Fail early when writing to a fake file runs out of space. Makes debugging tests easier. Reads from files, on the other hand, are only buffering to a temporary stream, so it makes sense to silently stop when they run out of space. In the process I uncovered a testing bug in pack.subx: I was missing a trailing space in the expected result, but the test still passed because the space was getting truncated. Being principled about aborting on overflow by default will help avoid such issues.
Diffstat (limited to 'subx/apps/handle')
-rwxr-xr-x | subx/apps/handle | bin | 17649 -> 17792 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/subx/apps/handle b/subx/apps/handle
index 3c80796e..3de933dd 100755
--- a/subx/apps/handle
+++ b/subx/apps/handle
Binary files differ |