aboutsummaryrefslogtreecommitdiff
path: root/tests/cc/modules
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-21 12:21:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-21 12:21:26 +0200
commit878681f18930a2457a83e68e8849963c2ae04a0d (patch)
treef8916c4aaaf26a8073fcae10ee4986ad75e50483 /tests/cc/modules
parent832980cde33bee65fda4bc6423b364d966af4f21 (diff)
Fix and improve modules test
Diffstat (limited to 'tests/cc/modules')
-rw-r--r--tests/cc/modules/testscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript
index 1fb1345..b26defb 100644
--- a/tests/cc/modules/testscript
+++ b/tests/cc/modules/testscript
@@ -177,7 +177,7 @@ $* test &*.d <'exe{test}: cxx{driver}' 2>>EOE != 0
:
ln -s ../core.mxx ./;
cat <'import bar.core;' >=driver.cxx;
-$* test &*.d <'exe{test}: cxx{driver} mxx{core}' 2>>EOE != 0
+$* test &*.d &*.ii <'exe{test}: cxx{driver} mxx{core}' 2>>EOE != 0
driver.cxx: error: failed to correctly guess module name from mxx{core}
info: guessed: bar.core
info: actual: foo.core
@@ -394,4 +394,6 @@ cat <<EOI >=core.mxx;
export module foo.core;
export int f (int);
EOI
+$* test <'exe{test}: cxx{driver core} mxx{core}';
+touch core.mxx; # Test use of cached .ii's.
$* test clean <'exe{test}: cxx{driver core} mxx{core}'