Home
last modified time | relevance | path

Searched +full:- +full:- +full:error +full:- +full:exitcode (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/external/python/cpython3/Modules/
Dmain.c32 /* --- pymain_init() ---------------------------------------------- */
57 if (args->use_bytes_argv) { in pymain_init()
58 status = PyConfig_SetBytesArgv(&config, args->argc, args->bytes_argv); in pymain_init()
61 status = PyConfig_SetArgv(&config, args->argc, args->wchar_argv); in pymain_init()
79 /* --- pymain_run_python() ---------------------------------------- */
81 /* Non-zero if filename, command (-c) or module (-m) is set
85 return (config->run_command != NULL in config_run_code()
86 || config->run_filename != NULL in config_run_code()
87 || config->run_module != NULL); in config_run_code()
91 /* Return non-zero if stdin is a TTY or if -i command line option is used */
[all …]
/external/ksp/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/
DKSPCmdLineOptionsIT.kt4 import org.jetbrains.kotlin.cli.common.ExitCode
14 data class CompileResult(val exitCode: ExitCode, val output: String) constant in com.google.devtools.ksp.test.CompileResult
19 val project: TemporaryTestProject = TemporaryTestProject("cmd-options")
24 val processorJar = File(project.root, "processors/build/libs/processors-1.0-SNAPSHOT.jar") in runCmdCompiler()
28 val kspPluginId = "com.google.devtools.ksp.symbol-processing" in runCmdCompiler()
29 …val kspPluginJar = File("$repoPath/symbol-processing-cmdline/2.0.255-SNAPSHOT").listFiles()!!.filt… in runCmdCompiler()
30 it.name.matches(Regex(".*-\\d.jar")) in runCmdCompiler()
32 … val kspApiJar = File("$repoPath/symbol-processing-api/2.0.255-SNAPSHOT").listFiles()!!.filter { in runCmdCompiler()
33 it.name.matches(Regex(".*-\\d.jar")) in runCmdCompiler()
36 "-no-stdlib", in runCmdCompiler()
[all …]
/external/toolchain-utils/compiler_wrapper/
Dcompiler_wrapper.go2 // Use of this source code is governed by a BSD-style license that can be
25 var compilerErr error
39 exitCode := 0
41 exitCode, compilerErr = callCompilerInternal(env, cfg, inputCmd)
45 exitCode = 1
47 return exitCode
73 func runAndroidClangTidy(env env, cmd *command) error {
83 // Note: This depends on Android build system's clang-tidy command line format.
84 // Last non-flag before "--" in cmd.Args is used as the source file name.
87 if arg == "--" {
[all …]
Dcrash_builds_test.go2 // Use of this source code is governed by a BSD-style license that can be
23exitCode, err := buildWithAutocrashImpl(ctx, ctx.cfg, ctx.newCommand(clangX86_64, mainCc), neverAu…
27 ctx.must(exitCode)
44exitCode, err := buildWithAutocrashImpl(ctx, ctx.cfg, ctx.newCommand(clangX86_64, mainCc), alwaysA…
48 ctx.must(exitCode)
64 ctx.cmdMock = func(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error {
67 if arg == "-" {
76 t.Error("Got `-` on command 1; didn't want that.")
81 t.Error("Didn't get `-` on command 2; wanted that.")
95exitCode, err := buildWithAutocrashImpl(ctx, ctx.cfg, ctx.newCommand(clangX86_64, mainCc), autocra…
[all …]
Derrors_test.go2 // Use of this source code is governed by a BSD-style license that can be
16 if err.Error() != "errors_test.go:15: abc" {
17 t.Errorf("Error message incorrect. Got: %s", err.Error())
24 if err.Error() != "errors_test.go:23: abc: someCause" {
25 t.Errorf("Error message incorrect. Got: %s", err.Error())
31 if err.Error() != "abc" {
32 t.Errorf("Error message incorrect. Got: %s", err.Error())
37 exitCode, err := wrapSubprocessErrorWithSourceLoc(nil, nil)
38 if exitCode != 0 {
39 t.Errorf("unexpected exit code. Got: %d", exitCode)
[all …]
Dcrash_builds.go2 // Use of this source code is governed by a BSD-style license that can be
24 // [ ] Run whatever command reproduces the error.
36 // called after the compiler is run. If it returns true, we'll re-execute the compiler with the bit
40 // work for common use-cases. You're encouraged to change them to `if true {` if they suit
43 // Return true if `error: some error message` is contained in the run's stderr.
45 return bytes.Contains(runInfo.stderr, []byte("error: some error message"))
48 // Return true if `foo.c:${line_number}: error: some error message` appears in the run's
51 r := regexp.MustCompile(`foo\.c:\d+: error: some error message`)
55 // Return true if there's a `-fjust-give-up` flag in the compiler's invocation.
58 if flag == "-fjust-give-up" {
[all …]
Dtestutil_test.go2 // Use of this source code is governed by a BSD-style license that can be
26 clangTidyAndroid = "./clang-tidy"
27 clangX86_64 = "./x86_64-cros-linux-gnu-clang"
28 gccX86_64 = "./x86_64-cros-linux-gnu-gcc"
29 gccX86_64Eabi = "./x86_64-cros-eabi-gcc"
30 gccArmV7 = "./armv7m-cros-linux-gnu-gcc"
31 gccArmV7Eabi = "./armv7m-cros-eabi-gcc"
32 gccArmV8 = "./armv8m-cros-linux-gnu-gcc"
33 gccArmV8Eabi = "./armv8m-cros-eabi-gcc"
44 cmdMock func(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error
[all …]
Drusage_flag.go2 // Use of this source code is governed by a BSD-style license that can be
25 func lockFileExclusive(fd uintptr) error {
46 ExitCode int `json:"exit_code"` member
65 // unless action returns an error or logFileName is ""
67 // an error is returned if action returns an error, or rusage commands in syscall fails
68 …Cmd *command, action func(willLogRusage bool) error) (maybeCommitToFile func(exitCode int) error, … argument
75 return func(int) error { return nil }, nil
94 return func(exitCode int) error {
95 …elapsedSysTime := time.Duration(rusageAfter.Stime.Nano()-rusageBefore.Stime.Nano()) * time.Nanosec…
96 …elapsedUserTime := time.Duration(rusageAfter.Utime.Nano()-rusageBefore.Utime.Nano()) * time.Nanose…
[all …]
Derrors.go2 // Use of this source code is governed by a BSD-style license that can be
19 var _ error = userError{}
21 func (err userError) Error() string { func
29 func newErrorwithSourceLocf(format string, v ...interface{}) error {
33 func wrapErrorwithSourceLocf(err error, format string, v ...interface{}) error { argument
34 return newErrorwithSourceLocfInternal(2, "%s: %s", fmt.Sprintf(format, v...), err.Error())
37 func wrapSubprocessErrorWithSourceLoc(cmd *command, subprocessErr error) (exitCode int, err error) { argument
44 if exitCode, ok := getExitCode(subprocessErr); ok {
45 return exitCode, nil
52 func newErrorwithSourceLocfInternal(skip int, format string, v ...interface{}) error {
[all …]
Dbisect_flag_test.go2 // Use of this source code is governed by a BSD-style license that can be
24 t.Error(err)
27 …"someBisectStage", "someBisectDir", filepath.Join(ctx.tempDir, gccX86_64+".real"), "--sysroot=.*",…
28 t.Error(err)
47 t.Error(err)
57 t.Error(err)
60 t.Error(err)
63 t.Error(err)
76 t.Error(err)
91 t.Error(err)
[all …]
Denv.go2 // Use of this source code is governed by a BSD-style license that can be
27 run(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error
28 runWithTimeout(cmd *command, duration time.Duration) error
29 exec(cmd *command) error
36 func newProcessEnv() (env, error) {
89 func (env *processEnv) exec(cmd *command) error {
93 func (env *processEnv) runWithTimeout(cmd *command, duration time.Duration) error {
97 func (env *processEnv) run(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error
110 ExitCode int `json:"exitcode,omitempty"` member
119 func (env *commandRecordingEnv) exec(cmd *command) error {
[all …]
/external/crosvm/crosvm_cli/src/sys/windows/
Dexit.rs2 // Use of this source code is governed by a BSD-style license that can be
14 pub type ExitCode = i32; typedef
17 pub struct ExitCodeWrapper(pub ExitCode);
20 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
27 fn exit_code<X>(self, exit_code: X) -> anyhow::Result<T> in exit_code()
29 X: Into<ExitCode>; in exit_code()
31 fn exit_context<X, C>(self, exit_code: X, context: C) -> anyhow::Result<T> in exit_context()
33 X: Into<ExitCode>, in exit_context()
36 fn with_exit_context<X, C, F>(self, exit_code: X, f: F) -> anyhow::Result<T> in with_exit_context()
38 X: Into<ExitCode>, in with_exit_context()
[all …]
/external/python/cpython3/Lib/test/
Dtest_faulthandler.py34 return '^' + (regex + '\n') * (min_count - 1) + regex
56 output from the standard error or from a file (if filename is set).
59 Strip the reference count from the standard error for Python debug
68 process = script_helper.spawn_python('-c', code, pass_fds=pass_fds)
71 exitcode = process.wait()
84 return output.splitlines(), exitcode
96 Raise an error if the output doesn't match the expected format.
100 header = 'Current thread 0x[0-9a-f]+'
102 header = 'Thread 0x[0-9a-f]+'
111 regex.append(' Garbage-collecting')
[all …]
/external/ktfmt/core/src/test/java/com/facebook/ktfmt/cli/
DMainTest.kt8 * http://www.apache.org/licenses/LICENSE-2.0
64 fun `expandArgsToFileNames - single file arg is used as is`() { in expandArgsToFileNames - single file arg is used as is()
71 fun `expandArgsToFileNames - single arg which is not a file is not returned`() { in expandArgsToFileNames - single arg which is not a file is not returned()
77 …fun `expandArgsToFileNames - single arg which is a directory is resolved to its recursively contai… in expandArgsToFileNames - single arg which is a directory is resolved to its recursively contained kt files()
88 …fun `expandArgsToFileNames - multiple directory args are resolved to their recursively contained k… in expandArgsToFileNames - multiple directory args are resolved to their recursively contained kt files()
108 fun `expandArgsToFileNames - a dash is an error`() { in expandArgsToFileNames - a dash is an error()
110 Main.expandArgsToFileNames(listOf(root.resolve("foo.bar").toString(), File("-").toString())) in expandArgsToFileNames - a dash is an error()
113 assertThat(e.message).contains("Error") in expandArgsToFileNames - a dash is an error()
118 fun `Using '-' as the filename formats an InputStream`() { in Using '-' as the filename formats an InputStream()
120 Main(code.byteInputStream(), PrintStream(out), PrintStream(err), arrayOf("-")).run() in Using '-' as the filename formats an InputStream()
[all …]
/external/e2fsprogs/scrub/
De2scrub.in19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
21 # Automatically check an LVM-managed filesystem online.
39 test -f "${conffile}" && . "${conffile}"
44 echo "mountpoint must be on an LVM-managed block device"
45 echo "-n: Show what commands e2scrub would execute."
46 echo "-r: Remove e2scrub snapshot and exit, do not check anything."
47 echo "-t: Run fstrim if successful."
48 echo "-V: Print version information and exit."
55 exitcode() {
59 # init script action error guidelines, which is to say that we
[all …]
De2scrub_all.in19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
34 test -f "${conffile}" && . "${conffile}"
40 echo " -n: Show what commands e2scrub_all would execute."
41 echo " -r: Remove e2scrub snapshots."
42 echo " -A: Scrub all ext[234] filesystems even if not mounted."
43 echo " -V: Print version information and exit."
50 exitcode() {
54 # init script action error guidelines, which is to say that we
55 # compress all errors to 1 ("generic or unspecified error", LSB 5.0
59 if [ -n "${SERVICE_MODE}" -a "${ret}" -ne 0 ]; then
[all …]
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DDiagnosticTest.java7 * http://www.apache.org/licenses/LICENSE-2.0
37 /** Tests for error reporting. */
82 assertThat(stderr.toString()).contains("InvalidSyntax.java:2:29: error: <identifier> expected"); in parseError()
88 String input = "\\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuu00not-actually-a-unicode-escape-sequence"; in lexError()
100 assertThat(stderr.toString()).contains("error: illegal unicode escape"); in lexError()
122 assertThat(stderr.toString()).contains("One.java:1:13: error: reached end of file"); in oneFileParseError()
142 int result = main.format("-i", pathOne.toString(), pathTwo.toString()); in oneFileParseErrorReplace()
144 assertThat(stderr.toString()).contains("One.java:1:14: error: class, interface"); in oneFileParseErrorReplace()
164 int exitCode = main.format(args); in parseError2() local
166 assertThat(exitCode).isEqualTo(1); in parseError2()
[all …]
/external/python/cpython3/Tools/c-analyzer/c_parser/preprocessor/
Derrors.py17 """Something preprocessor-related went wrong."""
45 def _msg(cls, error, **ignored): argument
47 if error:
48 msg = f'{msg} {error}'
51 def __init__(self, filename, argv, error=None, preprocessor=None): argument
52 exitcode = -1
53 if isinstance(error, tuple):
54 if len(error) == 2:
55 error, exitcode = error
57 error = str(error)
[all …]
/external/python/absl-py/absl/
Dapp.py7 # http://www.apache.org/licenses/LICENSE-2.0
22 raise app.UsageError('Too many command-line arguments.')
57 'Dump profile information to a file (for python -m '
58 'pstats). Implies --run_with_profiling.')
62 '--run_with_profiling is set.')
73 class Error(Exception): class
77 class UsageError(Error):
82 flags have been supplied or when there are not enough non-flag
83 arguments. It is distinct from flags.Error which covers the lower
87 def __init__(self, message, exitcode=1): argument
[all …]
/external/libcxx/utils/libcxx/
Dutil.py1 #===----------------------------------------------------------------------===##
8 #===----------------------------------------------------------------------===##
23 # Encode to UTF-8 to get binary data.
26 return str.encode('utf-8')
35 return to_string(bytes.decode('utf-8'))
78 report += "Standard Output:\n--\n%s--\n" % out
80 report += "Standard Error:\n--\n%s--\n" % err
86 """capture(command) - Run the given command (or argv list) in a shell and
88 exits with a non-zero status."""
102 """which(command, [paths]) - Look up the given command in the paths string
[all …]
/external/toolchain-utils/compiler_wrapper/testdata/cros_clang_host_golden/
Dforce_disable_werror.json7 "-Qunused-arguments",
8 "-Werror=poison-system-directories",
9 "-Wno-deprecated-declarations",
10 "-Wno-enum-constexpr-conversion",
11 "-Wno-error=implicit-function-declaration",
12 "-Wno-error=implicit-int",
13 "-Wno-final-dtor-non-final-class",
14 "-Wno-single-bit-bitfield-constant-conversion",
15 "-Wno-tautological-constant-compare",
16 "-Wno-tautological-unsigned-enum-zero-compare",
[all …]
/external/deqp/framework/delibs/deutil/
DdeProcess.c1 /*-------------------------------------------------------------------------
3 * ----------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
53 int exitCode; member
70 exit(-1); in die()
77 deSprintf(msgBuf, sizeof(msgBuf), "%s, error %d: %s", message, lastErr, strerror(lastErr)); in dieLastError()
86 while (pathLen > 0 && pathPrefix[pathLen - 1] == '/') in beginsWithPath()
87 pathLen -= 1; in beginsWithPath()
100 while (pathLen > 0 && pathPrefix[pathLen - 1] == '/') in stripLeadingPath()
[all …]
/external/llvm-libc/test/UnitTest/
DLibcDeathTestExecutors.cpp1 //===-- Implementation of libc death test executors -----------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
24 if (const char *error = Result.get_error()) { in testProcessKilled() local
25 Ctx->markFail(); in testProcessKilled()
27 tlog << error << '\n'; in testProcessKilled()
32 Ctx->markFail(); in testProcessKilled()
39 Ctx->markFail(); in testProcessKilled()
48 if (Signal == -1 || KilledBy == Signal) in testProcessKilled()
52 Ctx->markFail(); in testProcessKilled()
[all …]
/external/vulkan-validation-layers/build-android/
Dtest_APK.sh9 # http://www.apache.org/licenses/LICENSE-2.0
22 echo Running test script: build-android/test_APK.sh
31 echo " -p|--platform <platform> (optional)"
32 echo " -f|--filter <gtest filter list> (optional)"
33 echo " -s|--serial <target device serial number> (optional)"
34 echo " -a|--abi <target abi> (optional)"
36 echo "i.e. ${0##*/} -p <platform> -f <test filter> -s <serial number>"
40 if [[ $(($# % 2)) -ne 0 ]]
49 while [[ $# -gt 0 ]]
52 -p|--platform)
[all …]
/external/kotlinpoet/interop/ksp/test-processor/src/test/kotlin/com/squareup/kotlinpoet/ksp/test/processor/
DTestProcessorTest.kt8 * https://www.apache.org/licenses/LICENSE-2.0
118 error() in smokeTest()
122 error() in smokeTest()
126 error() in smokeTest()
130 param1: () -> String, in smokeTest()
131 param2: (String) -> String, in smokeTest()
132 param3: String.() -> String, in smokeTest()
135 … Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int) -> Unit, in smokeTest()
136 param7: ((String) -> String)?, in smokeTest()
137 param8: suspend () -> String, in smokeTest()
[all …]

12345678910>>...16