aboutsummaryrefslogtreecommitdiff
path: root/tests/command/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-13 13:33:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-27 17:08:05 +0300
commitc4292d57e2e67dfcdac9004f8edb229976f6669a (patch)
tree0c9be2ed21bbb18dfede60769c9c864c5a2f550d /tests/command/driver.cxx
parent1c6758009e82c47b5b341d418be2be401ef31482 (diff)
Add builtins support to command running API
Diffstat (limited to 'tests/command/driver.cxx')
-rw-r--r--tests/command/driver.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/command/driver.cxx b/tests/command/driver.cxx
index 39d38aa..ef07962 100644
--- a/tests/command/driver.cxx
+++ b/tests/command/driver.cxx
@@ -9,7 +9,8 @@
#include <string>
#include <vector>
#include <iostream>
-#include <stdexcept> // invalid_argument
+#include <stdexcept> // invalid_argument
+#include <system_error>
#endif
// Other includes.
@@ -245,7 +246,9 @@ main (int argc, const char* argv[])
cerr << e << endl;
return 1;
}
- catch (const process_error& e)
+ // Also handles process_error exception (derived from system_error).
+ //
+ catch (const system_error& e)
{
cerr << e << endl;
return 1;