aboutsummaryrefslogtreecommitdiff
path: root/tests/init.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-04 16:49:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-04 16:50:10 +0300
commit16b17383c40622af0cced6b076a73d98ce2ed0ee (patch)
tree4b3187cc5463d7e73db8af91321a8eacdec695c7 /tests/init.testscript
parent258eddebfd6df3bb691b848cb4071acebdf9dfbf (diff)
Fix testscript failing with 'not built with default C++ compiler' error
Diffstat (limited to 'tests/init.testscript')
-rw-r--r--tests/init.testscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/init.testscript b/tests/init.testscript
index 3b85ea5..f52de21 100644
--- a/tests/init.testscript
+++ b/tests/init.testscript
@@ -89,6 +89,14 @@ deinit += -d prj
{
$clone_prj;
+ # Note that not passing the C++ configuration arguments (see above) for
+ # the sake of testing, we may end up with the 'not built with default C++
+ # compiler' error. To avoid this, we just make sure this is not a C++
+ # project.
+ #
+ echo '' >=prj/build/root.build;
+ echo './: prj.cxx' >=prj/prj/buildfile;
+
$* -C @cfg -- -- '?sys:libprj/*' 2>>/~"%EOE%" &prj-cfg/***;
initializing in project $~/prj/
created configuration @cfg $~/prj-cfg/ 1 default,forwarded,auto-synchronized