lib/aux: Make it clear that rtcwake failures aren't bugs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 18 Nov 2014 09:39:38 +0000 (10:39 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 18 Nov 2014 09:39:38 +0000 (10:39 +0100)
Because QA has a bunch of shitty machines with old distros and tends
to re-port this all the time.

References: https://bugs.freedesktop.org/show_bug.cgi?id=82232
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
lib/igt_aux.c

index 0e1eeea..3bc10fb 100644 (file)
@@ -347,7 +347,8 @@ void igt_system_suspend_autoresume(void)
        igt_skip_on_simulation();
 
        ret = system("rtcwake -s 30 -m mem");
-       igt_assert(ret == 0);
+       igt_assert_f(ret == 0, "This failure means that something is wrong with the rtcwake tool "
+                    "or how your distro is set up. This is not a i915.ko or i-g-t bug.");
 }
 
 /**