Files
nix/tests
Linus Heckemann 3b9eb5385f Fix #1762
nix-store --export, nix-store --dump, and nix dump-path would previously
fail silently if writing the data out failed, because
 a) FdSink::write ignored exceptions, and
 b) the commands relied on FdSink's destructor, which ignores
    exceptions, to flush the data out.

This could cause rather opaque issues with installing nixos, because
nix-store --export would happily proceed even if it couldn't write its
data out (e.g. if nix-store --import on the other side of the pipe
failed).

This commit adds tests that expose these issues in the nix-store
commands, and fixes them for all three.

(cherry picked from commit 78ac3eb4eb)
2018-04-11 11:47:40 +02:00
..
2017-05-02 15:46:10 +02:00
2014-08-21 21:50:19 +02:00
2018-01-22 17:04:08 +01:00
2016-08-10 18:05:35 +02:00
2018-04-11 11:47:40 +02:00
2018-01-16 19:23:18 +01:00
2018-01-16 19:23:18 +01:00
2014-08-21 21:50:19 +02:00
2018-02-03 10:08:05 +01:00
2014-08-21 21:50:19 +02:00
2016-09-12 13:40:07 +02:00
2014-02-26 18:00:46 +01:00
2006-07-21 13:21:43 +00:00
2017-07-04 15:07:41 +02:00
2018-02-13 08:16:32 -05:00
2014-08-21 21:50:19 +02:00
2018-04-11 11:47:40 +02:00
2017-10-02 23:45:27 -04:00
2018-02-08 13:46:23 +01:00
2018-01-16 19:23:18 +01:00
2018-01-16 19:23:18 +01:00
2016-08-10 18:05:35 +02:00
2018-02-08 13:46:23 +01:00
2016-08-10 18:05:35 +02:00
2018-01-16 19:23:18 +01:00
2017-11-20 18:36:36 +01:00
2016-04-11 16:20:15 +02:00
2017-04-25 18:59:18 +02:00
2017-12-07 01:07:07 +01:00
2007-08-13 13:15:02 +00:00
2016-10-19 15:19:38 +02:00
2016-09-08 18:22:28 +02:00
2012-12-04 14:47:50 +01:00
2012-12-04 14:47:50 +01:00
2018-02-08 15:25:03 +01:00