aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{