From 24d274983df9f7dbeebe8a890297d4f30d5bbca7 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 29 Nov 2019 18:33:41 -0800 Subject: Update spec test suite (#2484) This updates spec test suite to that of the current up-to-date version of https://github.com/WebAssembly/spec repo. - All failing tests are added in `BLACKLIST` in shared.py with reasons. - For tests that already existed and was passing and started failing after the update, we add the new test to the blacklist and preserve the old file by renaming it to 'old_[FILENAME].wast' not to lose test coverage. When the cause of the error is fixed or the unsupported construct gets support so the new test passes, we can delete the corresponding 'old_[FILENAME].wast' file. - Adds support for `spectest.print_[type] style imports. --- src/emscripten-optimizer/istring.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/emscripten-optimizer/istring.h') diff --git a/src/emscripten-optimizer/istring.h b/src/emscripten-optimizer/istring.h index ccb08bf4b..af3386162 100644 --- a/src/emscripten-optimizer/istring.h +++ b/src/emscripten-optimizer/istring.h @@ -151,6 +151,9 @@ struct IString { bool startsWith(const char* prefix) const { return stripPrefix(prefix) != nullptr; } + bool startsWith(const IString& prefix) const { + return startsWith(prefix.str); + } size_t size() const { return str ? strlen(str) : 0; } }; -- cgit v1.2.3