summaryrefslogtreecommitdiff
path: root/scripts/kconfig/tests/err_recursive_dep/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/tests/err_recursive_dep/__init__.py')
-rw-r--r--scripts/kconfig/tests/err_recursive_dep/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/kconfig/tests/err_recursive_dep/__init__.py b/scripts/kconfig/tests/err_recursive_dep/__init__.py
new file mode 100644
index 000000000000..5f3821b43ce6
--- /dev/null
+++ b/scripts/kconfig/tests/err_recursive_dep/__init__.py
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0
+"""
+Detect recursive dependency error.
+
+Recursive dependency should be treated as an error.
+"""
+
+def test(conf):
+ assert conf.oldaskconfig() == 1
+ assert conf.stderr_contains('expected_stderr')