aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-24 13:55:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-24 15:08:14 +0300
commitac90ad71988a1ff726c3869286119666713e24a1 (patch)
tree4a9e4e3a7db60b3f035d1a43d3d77848ffac4c3f
parent49b6de46afac29898d47c1f38f1ad0b57ea041af (diff)
Adapt to fdnull() returning auto_fd now
-rw-r--r--build2/test/script/runner.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx
index 86cc145..558f3f0 100644
--- a/build2/test/script/runner.cxx
+++ b/build2/test/script/runner.cxx
@@ -1167,11 +1167,7 @@ namespace build2
{
try
{
- ifd.reset (fdnull ()); // @@ Eventually will be throwing.
-
- if (ifd.get () == -1) // @@ TMP
- throw io_error (
- error_code (errno, generic_category ()).message ());
+ ifd = fdnull ();
}
catch (const io_error& e)
{
@@ -1292,11 +1288,7 @@ namespace build2
{
try
{
- fd.reset (fdnull ()); // @@ Eventully will be throwing.
-
- if (fd.get () == -1) // @@ TMP
- throw io_error (
- error_code (errno, generic_category ()).message ());
+ fd = fdnull ();
}
catch (const io_error& e)
{