From: bugzilla-daemon@freedesktop.org
Subject: [Bug 108891] Test enumeration becomes funky on some tests due to fd
FILE* stream change
Date: Wed, 28 Nov 2018 22:19:25 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0711908507=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 820246E375
for ; Wed, 28 Nov 2018 22:19:25 +0000 (UTC)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0711908507==
Content-Type: multipart/alternative; boundary="15434435650.d15DDc.14986"
Content-Transfer-Encoding: 7bit
--15434435650.d15DDc.14986
Date: Wed, 28 Nov 2018 22:19:25 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
https://bugs.freedesktop.org/show_bug.cgi?id=3D108891
--- Comment #3 from Chris Wilson ---
diff --git a/lib/igt_core.c b/lib/igt_core.c
index e0989f53..bd600762 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1116,30 +1116,28 @@ void igt_fail(int exitcode)
if (in_atexit_handler)
_exit(IGT_EXIT_FAILURE);
- if (!failed_one)
- igt_exitcode =3D exitcode;
-
- failed_one =3D true;
-
/* Silent exit, parent will do the yelling. */
if (test_child)
exit(exitcode);
+ if (in_fixture) {
+ skip_subtests_henceforth =3D FAIL;
+ __igt_fixture_end();
+ }
+
_igt_log_buffer_dump();
+ if (!failed_one) {
+ igt_exitcode =3D exitcode;
+ failed_one =3D true;
+ }
+
if (in_subtest) {
if (exitcode =3D=3D IGT_EXIT_TIMEOUT)
exit_subtest("TIMEOUT");
else
exit_subtest("FAIL");
} else {
- assert(igt_can_fail());
-
- if (in_fixture) {
- skip_subtests_henceforth =3D FAIL;
- __igt_fixture_end();
- }
-
igt_exit();
}
}
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15434435650.d15DDc.14986
Date: Wed, 28 Nov 2018 22:19:25 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
Commen=
t # 3
on bug 10889=
1
from Chris Wilson
diff --git a/lib/igt_core.c b/lib/igt_core.c
index e0989f53..bd600762 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1116,30 +1116,28 @@ void igt_fail(int exitcode)
if (in_atexit_handler)
_exit(IGT_EXIT_FAILURE);
- if (!failed_one)
- igt_exitcode =3D exitcode;
-
- failed_one =3D true;
-
/* Silent exit, parent will do the yelling. */
if (test_child)
exit(exitcode);
+ if (in_fixture) {
+ skip_subtests_henceforth =3D FAIL;
+ __igt_fixture_end();
+ }
+
_igt_log_buffer_dump();
+ if (!failed_one) {
+ igt_exitcode =3D exitcode;
+ failed_one =3D true;
+ }
+
if (in_subtest) {
if (exitcode =3D=3D IGT_EXIT_TIMEOUT)
exit_subtest("TIMEOUT");
else
exit_subtest("FAIL");
} else {
- assert(igt_can_fail());
-
- if (in_fixture) {
- skip_subtests_henceforth =3D FAIL;
- __igt_fixture_end();
- }
-
igt_exit();
}
}
You are receiving this mail because:
- You are the assignee for the bug.
=
--15434435650.d15DDc.14986--
--===============0711908507==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0711908507==--