From patchwork Thu Nov 13 11:59:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 5296001 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5FDBEC11AC for ; Thu, 13 Nov 2014 11:59:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F04C201ED for ; Thu, 13 Nov 2014 11:59:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CC1C8201EF for ; Thu, 13 Nov 2014 11:59:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 10B756EB36; Thu, 13 Nov 2014 03:59:11 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by gabe.freedesktop.org (Postfix) with ESMTP id DA2156EB36 for ; Thu, 13 Nov 2014 03:59:09 -0800 (PST) Received: by mail-wi0-f178.google.com with SMTP id bs8so7964900wib.11 for ; Thu, 13 Nov 2014 03:59:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=g5ytE4iNEINszIlJodcejv5O7V+/b6McLOZ7p1knR1w=; b=j4Ul73ppMjWrug2m/rtoRug4k/hOhMlLVIPGJeERriPgS1DCpxpxF7hBF7Lrtzr1lB HLSTybELpKJWLpHXv12ZU8QdwfLAgUt3hdpOEcYRrCh6w3fICIwxMQtU81IHuRIUNpgk YO84cX4e0DIFpAt3Feok05JKQkJRgJhHRH+wN8vMZXD5cLvLD9sZrk+ClOoomKfIjFqa URkMQrgrSetrw2QlBYUFfarsW1enMNmm4RdR6LElP9ANZQ+ETCqjialf9f21ZetdO0ag nRsDkjWWK2+0wc4MYHB9Jn2dQvu9F5XEAU0GortzCX52xAveOtTGJ3EtUNrOtZfjVCil 0K1Q== X-Gm-Message-State: ALoCoQn2FO4igBBEOkA0XK3PNi4T3lPDsqhXmIs3caJPOjBPxuj3trOYKfUYHxFM1vN1JNJuqa32 X-Received: by 10.180.80.39 with SMTP id o7mr3026097wix.37.1415879949108; Thu, 13 Nov 2014 03:59:09 -0800 (PST) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id lm9sm35237107wjc.45.2014.11.13.03.59.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Nov 2014 03:59:08 -0800 (PST) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Thu, 13 Nov 2014 11:59:03 +0000 Message-Id: <1415879945-3975-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [Intel-gfx] [PATCH i-g-t 1/3] lib/tests: add a test for igt_set_timeout X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Thomas Wood --- lib/tests/.gitignore | 1 + lib/tests/Makefile.sources | 2 ++ lib/tests/igt_timeout.c | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100644 lib/tests/igt_timeout.c diff --git a/lib/tests/.gitignore b/lib/tests/.gitignore index caf5348..9fd8580 100644 --- a/lib/tests/.gitignore +++ b/lib/tests/.gitignore @@ -5,3 +5,4 @@ igt_no_exit igt_no_exit_list_only igt_no_subtest igt_simulation +igt_timeout diff --git a/lib/tests/Makefile.sources b/lib/tests/Makefile.sources index d64c89c..4208a26 100644 --- a/lib/tests/Makefile.sources +++ b/lib/tests/Makefile.sources @@ -5,6 +5,7 @@ check_PROGRAMS = \ igt_list_only \ igt_no_subtest \ igt_simulation \ + igt_timeout \ $(NULL) check_SCRIPTS = \ @@ -22,4 +23,5 @@ XFAIL_TESTS = \ igt_no_exit \ igt_no_exit_list_only \ igt_no_subtest \ + igt_timeout \ $(NULL) diff --git a/lib/tests/igt_timeout.c b/lib/tests/igt_timeout.c new file mode 100644 index 0000000..8affa61 --- /dev/null +++ b/lib/tests/igt_timeout.c @@ -0,0 +1,8 @@ +#include "igt_core.h" +#include + +igt_simple_main +{ + igt_set_timeout(1); + sleep(5); +}