From 52a2a21c1cdefb241aa0e43b9e0b0a027f6dc511 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 10 Apr 2019 17:22:00 -0700 Subject: 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. --- subx/apps/hex | Bin 20928 -> 21191 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'subx/apps/hex') diff --git a/subx/apps/hex b/subx/apps/hex index 66c66b5b..331997cf 100755 Binary files a/subx/apps/hex and b/subx/apps/hex differ -- cgit 1.4.1-2-gfad0