Lines Matching refs:stderr
87 def generate_bindgen_libclang(cls, stderr): argument
88 return cls.generate_bindgen(cls.bindgen_default_bindgen_version_stdout, stderr)
137 self.assertEqual(result.stderr, b"")
144 self.assertNotEqual(result.stderr, b"")
149 … self.assertIn(b"Please see Documentation/rust/quick-start.rst for details", result.stderr)
154 … self.assertIn(b"Please see Documentation/rust/quick-start.rst for details", result.stderr)
158 result.stderr = result.stderr.decode()
164 self.assertIn("Environment variable 'RUSTC' is not set.", result.stderr)
165 self.assertIn("This script is intended to be called from Kbuild.", result.stderr)
169 self.assertIn("Environment variable 'BINDGEN' is not set.", result.stderr)
170 self.assertIn("This script is intended to be called from Kbuild.", result.stderr)
174 self.assertIn("Environment variable 'CC' is not set.", result.stderr)
175 self.assertIn("This script is intended to be called from Kbuild.", result.stderr)
179 self.assertIn(f"Rust compiler '{self.missing}' could not be found.", result.stderr)
183 … self.assertIn(f"Rust bindings generator '{self.missing}' could not be found.", result.stderr)
187 …In(f"Running '{self.nonexecutable}' to check the Rust compiler version failed with", result.stderr)
191 …nning '{self.unexpected_binary}' to check the Rust compiler version did not return", result.stderr)
196 …elf.assertIn(f"Running '{rustc}' to check the Rust compiler version did not return", result.stderr)
201 …elf.assertIn(f"Running '{rustc}' to check the Rust compiler version did not return", result.stderr)
206 …elf.assertIn(f"Running '{rustc}' to check the Rust compiler version did not return", result.stderr)
211 self.assertIn(f"Rust compiler '{rustc}' is too old.", result.stderr)
215 …ng '{self.nonexecutable}' to check the Rust bindings generator version failed with", result.stderr)
219 … '{self.unexpected_binary}' to check the bindings generator version did not return", result.stderr)
224 …ertIn(f"Running '{bindgen}' to check the bindings generator version did not return", result.stderr)
229 …ertIn(f"Running '{bindgen}' to check the bindings generator version did not return", result.stderr)
234 …ertIn(f"Running '{bindgen}' to check the bindings generator version did not return", result.stderr)
239 self.assertIn(f"Rust bindings generator '{bindgen}' is too old.", result.stderr)
246 ….assertIn(f"Rust bindings generator '{bindgen}' versions 0.66.0 and 0.66.1 may not", result.stderr)
257 …elf.assertIn(f"Running '{bindgen}' to check the libclang version (used by the Rust", result.stderr)
258 …e {self.bindgen_default_bindgen_libclang_failure_exit_code}. This may be caused by", result.stderr)
263 …elf.assertIn(f"Running '{bindgen}' to check the libclang version (used by the Rust", result.stderr)
264 … self.assertIn("bindings generator) did not return an expected output. See output", result.stderr)
269 ….assertIn(f"libclang (used by the Rust bindings generator '{bindgen}') is too old.", result.stderr)
274 self.assertIn("version does not match Clang's. This may be a problem.", result.stderr)
279 self.assertIn("version does not match Clang's. This may be a problem.", result.stderr)
283 … self.assertIn("Source code for the 'core' standard library could not be found", result.stderr)
287 … self.assertIn("Source code for the 'core' standard library could not be found", result.stderr)
291 self.assertIn("unknown C compiler", result.stderr)
322 for stderr in (
335 with self.subTest(stderr=stderr):
336 bindgen = self.generate_bindgen_libclang(stderr)