diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-21 12:21:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-21 12:21:26 +0200 |
commit | 878681f18930a2457a83e68e8849963c2ae04a0d (patch) | |
tree | f8916c4aaaf26a8073fcae10ee4986ad75e50483 | |
parent | 832980cde33bee65fda4bc6423b364d966af4f21 (diff) |
Fix and improve modules test
-rw-r--r-- | tests/cc/modules/testscript | 4 |
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}' |