Fix #8502 by not printing the message which is known to be repeated millions of times.

This commit is contained in:
Josh Matthews 2015-11-25 11:14:13 -05:00
parent e3eee5a41b
commit a211c65f66

View file

@ -55,14 +55,14 @@ use util::opts;
use util::print_tree::PrintTree; use util::print_tree::PrintTree;
use windowing::{self, MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg}; use windowing::{self, MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg};
#[derive(Debug)] #[derive(Debug, PartialEq)]
enum UnableToComposite { enum UnableToComposite {
NoContext, NoContext,
WindowUnprepared, WindowUnprepared,
NotReadyToPaintImage(NotReadyToPaint), NotReadyToPaintImage(NotReadyToPaint),
} }
#[derive(Debug)] #[derive(Debug, PartialEq)]
enum NotReadyToPaint { enum NotReadyToPaint {
LayerHasOutstandingPaintMessages, LayerHasOutstandingPaintMessages,
MissingRoot, MissingRoot,
@ -1768,7 +1768,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
(opts::get().output_file.is_some() || opts::get().exit_after_load) { (opts::get().output_file.is_some() || opts::get().exit_after_load) {
println!("Shutting down the Constellation after generating an output file or exit flag specified"); println!("Shutting down the Constellation after generating an output file or exit flag specified");
self.start_shutting_down(); self.start_shutting_down();
} else if composited.is_err() && opts::get().is_running_problem_test { } else if composited.is_err() &&
opts::get().is_running_problem_test &&
composited.as_ref().err().unwrap() != &UnableToComposite::NotReadyToPaintImage(
NotReadyToPaint::WaitingOnConstellation) {
println!("not ready to composite: {:?}", composited.err().unwrap()); println!("not ready to composite: {:?}", composited.err().unwrap());
} }
} }