File: bad_subtest_type.c

package info (click to toggle)
intel-gpu-tools 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 62,024 kB
  • sloc: xml: 769,439; ansic: 348,692; python: 8,307; yacc: 2,781; perl: 1,196; sh: 1,178; lex: 487; asm: 227; makefile: 27; lisp: 11
file content (23 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: MIT
/*
* Copyright © 2022 Intel Corporation
*/

#include "igt_core.h"
#include "igt_types.h"

IGT_TEST_DESCRIPTION("Test bad-scoped file descriptor variable");

igt_main
{
	igt_describe("Check if using a scoped variable inside a subtest will abort it");
	igt_subtest("bad-scoped-variable") {
		/*
		 * Not allowed to nest a scoped variable inside a subtest as
		 * we expect to longjmp out of the subtest on failure/skip
		 * and automatic cleanup is not invoked for such jmps.
		 * So, this test is expected to fail with SIGABRT.
		 */
		igt_fd_t(f);
	}
}