diff options
Diffstat (limited to 'pw_unit_test/simple_printing_main.cc')
-rw-r--r-- | pw_unit_test/simple_printing_main.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pw_unit_test/simple_printing_main.cc b/pw_unit_test/simple_printing_main.cc index 5aeab4578..d53ac29ac 100644 --- a/pw_unit_test/simple_printing_main.cc +++ b/pw_unit_test/simple_printing_main.cc @@ -12,20 +12,20 @@ // License for the specific language governing permissions and limitations under // the License. -#include <span> #include <string_view> +#include "gtest/gtest.h" +#include "pw_span/span.h" #include "pw_sys_io/sys_io.h" -#include "pw_unit_test/framework.h" #include "pw_unit_test/simple_printing_event_handler.h" int main() { pw::unit_test::SimplePrintingEventHandler handler( [](const std::string_view& s, bool append_newline) { if (append_newline) { - pw::sys_io::WriteLine(s); + pw::sys_io::WriteLine(s).IgnoreError(); } else { - pw::sys_io::WriteBytes(std::as_bytes(std::span(s))); + pw::sys_io::WriteBytes(pw::as_bytes(pw::span(s))).IgnoreError(); } }); |