aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SyntaxTest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-15 01:07:55 +0800
committerGitHub <noreply@github.com>2018-03-15 01:07:55 +0800
commit78abe81f0874f65b02ddc0529b4bd0ce93fa52a2 (patch)
treed8d1e8db2f7012aaabb84f134594ee4afa6a201e /test/libsolidity/SyntaxTest.cpp
parenteecc26deec1815191bc3405e54ef84daaba853a1 (diff)
parentd0c96d53e90be5e58d8fef2e77fbd71baf2027ba (diff)
downloaddexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar
dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.gz
dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.bz2
dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.lz
dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.xz
dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.tar.zst
dexon-solidity-78abe81f0874f65b02ddc0529b4bd0ce93fa52a2.zip
Merge branch 'develop' into externalFunctionsInLibraries
Diffstat (limited to 'test/libsolidity/SyntaxTest.cpp')
-rw-r--r--test/libsolidity/SyntaxTest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/libsolidity/SyntaxTest.cpp b/test/libsolidity/SyntaxTest.cpp
index f1c60458..45a851b6 100644
--- a/test/libsolidity/SyntaxTest.cpp
+++ b/test/libsolidity/SyntaxTest.cpp
@@ -21,6 +21,7 @@
#include <boost/throw_exception.hpp>
#include <cctype>
#include <fstream>
+#include <memory>
#include <stdexcept>
using namespace dev;
@@ -188,6 +189,9 @@ int SyntaxTest::registerTests(
}
else
{
+ static vector<unique_ptr<string>> filenames;
+
+ filenames.emplace_back(new string(_path.string()));
_suite.add(make_test_case(
[fullpath]
{
@@ -196,7 +200,7 @@ int SyntaxTest::registerTests(
BOOST_ERROR("Test expectation mismatch.\n" + errorStream.str());
},
_path.stem().string(),
- _path.string(),
+ *filenames.back(),
0
));
numTestsAdded = 1;