diagnostic/printer: Print newline at end of tests
Otherwise other test messages will continue from the same line as the pretty colors.
Bug: tint:282
Change-Id: I14727b4faa7bbca490523cdd6941fa09dc6b514a
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/31661
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/src/diagnostic/printer_test.cc b/src/diagnostic/printer_test.cc
index 662b821..4808cba 100644
--- a/src/diagnostic/printer_test.cc
+++ b/src/diagnostic/printer_test.cc
@@ -44,6 +44,7 @@
printer->write("Magenta", Style{Color::kMagenta, false});
printer->write("Cyan", Style{Color::kCyan, false});
printer->write("White", Style{Color::kWhite, false});
+ printf("\n");
}
TEST_F(PrinterTest, BoldWithColors) {
@@ -57,6 +58,7 @@
printer->write("Magenta", Style{Color::kMagenta, true});
printer->write("Cyan", Style{Color::kCyan, true});
printer->write("White", Style{Color::kWhite, true});
+ printf("\n");
}
TEST_F(PrinterTest, WithoutColors) {
@@ -70,6 +72,7 @@
printer->write("Magenta", Style{Color::kMagenta, false});
printer->write("Cyan", Style{Color::kCyan, false});
printer->write("White", Style{Color::kWhite, false});
+ printf("\n");
}
TEST_F(PrinterTest, BoldWithoutColors) {
@@ -83,6 +86,7 @@
printer->write("Magenta", Style{Color::kMagenta, true});
printer->write("Cyan", Style{Color::kCyan, true});
printer->write("White", Style{Color::kWhite, true});
+ printf("\n");
}
} // namespace