summaryrefslogtreecommitdiff
path: root/test/binary/bad-logging-basic.txt
Commit message (Collapse)AuthorAgeFilesLines
* Use stderr for all logging and error output (#1579)Sam Clegg2020-12-031-4/+2
| | | | I'm not sure why we were using stdout but the convention is normally to write all logging and error message to stderr.
* Update output from type to func type in binary writer and reader (#1570)Radu M2020-11-161-1/+1
| | | Signed-off-by: Radu M <root@radu.sh>
* Replace `run-gen-wasm*.py` with `RUN` commands (#738)Ben Smith2018-01-261-2/+0
| | | | | This adds a new TOOL: `run-gen-wasm-bad` which is the same as `run-gen-wasm`, but assumes that both `wasm2wat` and `wasm-validate` will fail with an error.
* Rename run args (#728)Ben Smith2018-01-211-1/+1
| | | | As suggested in https://github.com/WebAssembly/wabt/pull/725#discussion_r162516714.
* Remove BinaryErrorHandler, rename SourceErrorHandler (#553)Ben Smith2017-07-061-1/+1
| | | | | | | Since SourceErrorHandler can support binary locations, it doesn't make much sense to have two different error handlers. There is now only an ErrorHandler base class, and the first argument specifies whether the error handler is expecting text or binary locations.
* Use classes + virtual functions for BinaryReader (#376)Ben Smith2017-03-301-10/+10
| | | | | | | | | | | | | | | This adds a few new classes: * BinaryReader: the abstract base class * BinaryReaderNop: implements all of BinaryReader, but does nothing * BinaryReaderLogging: logs calls through BinaryReader, and forwards to another BinaryReader Typically this means we can remove the Context structs from these implementations, since that data can just move into the BinaryReader subclasses. I also took the opportunity to rename the new member functions to MixedCase instead of snake_case, since that's more common in C++.
* Fix crash using binary reader logging with error (#351)Ben Smith2017-03-131-0/+30
When the binary logging is turned on, it can't use the `reader->on_error` directly since that function expects that the user_data is the BinaryReaderInterpreter context (for example), but it is actually the LoggingContext. To make it easier for users to use the default error handler, now they return a bool saying whether the error was handled. Some additional changes: * Add a test that uses logging and succeeds * Add a test that uses logging and has an error * Change the `run-*-interp.py` scripts to use `-t` for tracing and `-v` for logging