Home
last modified time | relevance | path

Searched +full:- +full:- +full:fail +full:- +full:under (Results 1 – 25 of 1454) sorted by relevance

12345678910>>...59

/external/autotest/client/common_lib/cros/manual/
Daudio_helper.py2 # Use of this source code is governed by a BSD-style license that can be
20 @param dut: The handle of the device under test.
27 logging.info('---cmd: %s', cmd)
32 logging.exception('Fail to execute %s.', cmd)
35 logging.info('---audio card %s', soundcard)
37 logging.exception('Fail to get sound card, cli=%s.', cmd)
43 @param dut: The handle of the device under test.
52 return False, 'Soundcard is not found under /proc/asound/cards.'
57 @param dut: The handle of the device under test.
78 @param dut: The handle of the device under test. Should be initialized in
[all …]
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DCommandLineFlagsTest.java4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
11 * or implied. See the License for the specific language governing permissions and limitations under
18 import static org.junit.Assert.fail;
25 * Tests for command-line flags.
30 // TODO(eaftan): Disallow passing both -lines and -offset/-length, like clang-format.
35 Main.processArgs("-i"); in formatInPlaceRequiresAtLeastOneFile()
36 fail(); in formatInPlaceRequiresAtLeastOneFile()
42 Main.processArgs("-i", "-"); in formatInPlaceRequiresAtLeastOneFile()
[all …]
/external/pigweed/pw_presubmit/py/
Dcpp_checks_test.py4 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
8 # https://www.apache.org/licenses/LICENSE-2.0
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # License for the specific language governing permissions and limitations under
24 # pylint: disable=attribute-defined-outside-init
36 def _run(self, contents: str) -> None:
38 self.ctx.fail = MagicMock()
49 def test_empty(self) -> None:
51 self.ctx.fail.assert_called()
53 def test_simple(self) -> None:
[all …]
Dgitmodules_test.py4 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
8 # https://www.apache.org/licenses/LICENSE-2.0
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # License for the specific language governing permissions and limitations under
51 def _run(self, config: gitmodules.Config, contents: str) -> None:
53 self.ctx.fail = MagicMock()
62 def test_ok_no_submodules(self) -> None:
64 self.ctx.fail.assert_not_called()
66 def test_no_submodules_allowed(self) -> None:
71 self.ctx.fail.assert_called()
[all …]
Dtodo_check_test.py4 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
8 # https://www.apache.org/licenses/LICENSE-2.0
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # License for the specific language governing permissions and limitations under
24 # pylint: disable=attribute-defined-outside-init
25 # todo-check: disable
28 # pylint: disable-next=too-many-public-methods
32 def _run(self, regex: re.Pattern, contents: str) -> None:
34 self.ctx.fail = MagicMock()
41 # pylint: disable=protected-access
[all …]
/external/deqp/modules/gles31/functional/
Des31fInfoLogQueryShared.cpp1 /*-------------------------------------------------------------------------
3 * -------------------------------------------------
7 * Licensed under the Apache License, Version 2.0 (the "License");
11 * http://www.apache.org/licenses/LICENSE-2.0
14 * distributed under the License is distributed on an "AS IS" BASIS,
17 * limitations under the License.
22 *//*--------------------------------------------------------------------*/
52 if (logLen > 0 && buf[logLen - 1] != '\0') in verifyInfoLogQuery()
53 result.fail("Return buffer was not INFO_LOG_LENGTH sized and null-terminated"); in verifyInfoLogQuery()
55 result.fail("Buffer end guard modified, query wrote over the end of the buffer."); in verifyInfoLogQuery()
[all …]
/external/apache-xml/test/tests/contrib/xsltc/schemasoft/
Dcompare.xsl1 <?xml version='1.0' encoding='utf-8' ?>
9 <!-- FileName: compare.xsl -->
11 <!-- Creator: John Li, Schemasoft -->
13 <!-- Purpose: Compare values of numerical parameters that are set using "select" and by child -->
19 <xsl:call-template name="compare">
21 <xsl:with-param name="a" select="3"/>
23 <xsl:with-param name="b">1</xsl:with-param>
25 <xsl:with-param name="x">3</xsl:with-param>
27 </xsl:call-template>
41 a = <xsl:value-of select="$a"/>
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DMathPreconditionsTest.java4 * Licensed under the Apache License, Version 2.0 (the "License");
8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
14 * limitations under the License.
37 fail(); in testCheckPositive_zeroInt()
49 fail(); in testCheckPositive_minInt()
60 MathPreconditions.checkPositive("int", -1); in testCheckPositive_negativeInt()
61 fail(); in testCheckPositive_negativeInt()
69 fail(); in testCheckPositive_zeroLong()
81 fail(); in testCheckPositive_minLong()
[all …]
/external/guava/android/guava-tests/test/com/google/common/math/
DMathPreconditionsTest.java4 * Licensed under the Apache License, Version 2.0 (the "License");
8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
14 * limitations under the License.
37 fail(); in testCheckPositive_zeroInt()
49 fail(); in testCheckPositive_minInt()
60 MathPreconditions.checkPositive("int", -1); in testCheckPositive_negativeInt()
61 fail(); in testCheckPositive_negativeInt()
69 fail(); in testCheckPositive_zeroLong()
81 fail(); in testCheckPositive_minLong()
[all …]
/external/bazelbuild-rules_cc/cc/toolchains/impl/
Dtoolchain_config_info.bzl3 # Licensed under the Apache License, Version 2.0 (the "License");
7 # http://www.apache.org/licenses/LICENSE-2.0
10 # distributed under the License is distributed on an "AS IS" BASIS,
13 # limitations under the License.
57 def _get_known_features(features, capability_features, fail):
63 fail(_FEATURE_NAME_ERR.format(
78 def _validate_requires_any_of(fn, self, known_features, fail):
86 fail(_INVALID_CONSTRAINT_ERR.format(provider = self.label))
88 def _validate_requires_any_of_feature_set(self, known_features, fail):
93 fail,
[all …]
/external/apache-velocity-engine/velocity-engine-scripting/src/test/java/org/apache/velocity/script/test/
DVelocityScriptContextTest.java4 * Licensed to the Apache Software Foundation (ASF) under one
8 * to you under the Apache License, Version 2.0 (the
12 * http://www.apache.org/licenses/LICENSE-2.0
15 * software distributed under the License is distributed on an
19 * under the License.
54 context.setAttribute("engine-prop1", "engine-value1", ScriptContext.ENGINE_SCOPE); in testEngineScopeAttributes()
56 … assertEquals(context.getAttribute("engine-prop1", ScriptContext.ENGINE_SCOPE), "engine-value1"); in testEngineScopeAttributes()
57 assertNull(context.getAttribute("engine-prop1", ScriptContext.GLOBAL_SCOPE)); in testEngineScopeAttributes()
59 context.removeAttribute("engine-prop1", ScriptContext.ENGINE_SCOPE); in testEngineScopeAttributes()
60 assertNull(context.getAttribute("engine-prop1", ScriptContext.ENGINE_SCOPE)); in testEngineScopeAttributes()
[all …]
/external/gson/gson/src/test/java/com/google/gson/
DToNumberPolicyTest.java4 * Licensed under the Apache License, Version 2.0 (the "License");
8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
14 * limitations under the License.
20 import static org.junit.Assert.fail;
38 fail(); in testDouble()
43 strategy.readNumber(fromString("\"not-a-number\"")); in testDouble()
44 fail(); in testDouble()
65 fail(); in testLongOrDouble()
70 strategy.readNumber(fromString("\"not-a-number\"")); in testLongOrDouble()
[all …]
/external/autotest/client/common_lib/
Dlsbrelease_utils.py2 # Use of this source code is governed by a BSD-style license that can be
5 # This module provides helper method to parse /etc/lsb-release file to extract
18 """Searches /etc/lsb-release for a regex match.
23 @param lsb_release_content: A string represents the content of lsb-release.
29 @raises IOError if /etc/lsb-release can not be accessed.
36 lsb_release_content = lsb_release_content.decode("utf-8")
47 @param lsb_release_content: A string represents the content of lsb-release.
50 @return current board name, e.g "lumpy", None on fail.
57 """Get chromeos channel in device under test as string. None on fail.
59 @param lsb_release_content: A string represents the content of lsb-release.
[all …]
/external/v4l-utils/utils/cec-compliance/
Dcec-compliance.1.in1 .TH "CEC-COMPLIANCE" "1" "August 2016" "v4l-utils @MAN_PACKAGE_VERSION@" "User Commands"
3 cec-compliance - An application to verify remote CEC devices
5 .B cec-compliance
6 [\fI-h\fR] [\fI-d <dev>\fR] [other options]
8 The cec-compliance utility can be used to test how well remote CEC devices
10 CEC adapter (with the \fI-A\fR option).
17 \fBcec-compliance\fR. Use \fBcec-ctl\fR for configuration.
23 When running compliance tests, \fBcec-follower\fR should be run on the same
24 adapter. \fBcec-follower\fR will reply to messages that are not handled by
25 \fBcec-compliance\fR. \fBcec-follower\fR will also monitor the device under test
[all …]
/external/snakeyaml/src/test/java/org/pyyaml/
DPyErrorsTest.java4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
11 * or implied. See the License for the specific language governing permissions and limitations under
38 failures.add("unacceptable-key.loader-error"); in skip()
48 File[] files = getStreamsByExtension(".loader-error"); in testLoaderErrors()
60 fail("Loading must fail for " + files[i].getAbsolutePath()); in testLoaderErrors()
61 // System.err.println("Loading must fail for " + in testLoaderErrors()
70 File[] files = getStreamsByExtension(".loader-error"); in testLoaderStringErrors()
81 fail("Loading must fail for " + files[i].getAbsolutePath()); in testLoaderStringErrors()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiToolingInfoTests.cpp1 /*-------------------------------------------------------------------------
3 * ------------------------
8 * Licensed under the Apache License, Version 2.0 (the "License");
12 * http://www.apache.org/licenses/LICENSE-2.0
15 * distributed under the License is distributed on an "AS IS" BASIS,
18 * limitations under the License.
23 *//*--------------------------------------------------------------------*/
75 return tcu::TestStatus::fail("Fail"); in validateGetter()
96 return tcu::TestStatus::fail("Fail"); in validateGetter()
103 return tcu::TestStatus::fail("Fail"); in validateGetter()
[all …]
DvktApiMaintenance7Tests.cpp1 /*-------------------------------------------------------------------------
3 * ------------------------
9 * Licensed under the Apache License, Version 2.0 (the "License");
13 * http://www.apache.org/licenses/LICENSE-2.0
16 * distributed under the License is distributed on an "AS IS" BASIS,
19 * limitations under the License.
23 *//*--------------------------------------------------------------------*/
101 return tcu::TestStatus::fail("Fail"); in iterate()
109 return tcu::TestStatus::fail("Fail"); in iterate()
123 "zero-filled" in iterate()
[all …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimeTest.java2 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
12 * distributed under the License is distributed on an "AS IS" BASIS,
15 * limitations under the License.
34 static long TIME_TEST3 = -38720000; // 13:14:40 GMT
46 static String STRING_INVALID3 = "21-43-48";
65 static String TZ_PACIFIC = "America/Los_Angeles"; // GMT - 8
121 String[] invalidTime = { null, "ABCDEFGHI", "233104", "21-43-48" }; in testValueOfString()
131 fail("Should throw IllegalArgumentException"); in testValueOfString()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/
DArchiveOutputStreamTest.java2 * Licensed to the Apache Software Foundation (ASF) under one
6 * to you under the Apache License, Version 2.0 (the
10 * http://www.apache.org/licenses/LICENSE-2.0
13 * software distributed under the License is distributed on an
17 * under the License.
49 fail("After putArchive should follow closeArchive"); in testFinish()
58 fail("After putArchive should follow closeArchive"); in testFinish()
67 fail("After putArchive should follow closeArchive"); in testFinish()
76 fail("After putArchive should follow closeArchive"); in testFinish()
85 fail("After putArchive should follow closeArchive"); in testFinish()
[all …]
/external/truth/core/src/test/java/com/google/common/truth/
DExpectTest.java4 * Licensed under the Apache License, Version 2.0 (the "License");
8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
14 * limitations under the License.
24 import static org.junit.Assert.fail;
55 (base, description) ->
74 (statement, description) -> {
91 expect.withMessage("x").fail(); in singleExpectationFails()
100 expect.withMessage("x").fail(); in expectFail()
101 expect.withMessage("y").fail(); in expectFail()
[all …]
/external/grpc-grpc/src/ruby/end2end/
Derrors_load_before_grpc_lib_test.rb5 # Licensed under the Apache License, Version 2.0 (the "License");
9 # http://www.apache.org/licenses/LICENSE-2.0
12 # distributed under the License is distributed on an "AS IS" BASIS,
15 # limitations under the License.
23 fail('GRPC BadStatus#to_status not expected to return nil') if my_status.nil?
24 fail('GRPC BadStatus#to_status code expected to be 2') unless my_status.code == 2
25fail('GRPC BadStatus#to_status details expected to be unknown') unless my_status.details == 'unkno…
26fail('GRPC BadStatus#to_status metadata expected to be empty hash') unless my_status.metadata == {}
27 fail('GRPC library loaded after BadStatus#to_status') if GRPC::Core.const_defined?(:Channel)
32 fail('GRPC BadStatus#to_rpc_status expected to return nil') unless my_rpc_status.nil?
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DBaseTestHandler.java4 * Licensed under the Apache License, Version 2.0 (the "License");
8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
14 * limitations under the License.
23 import static org.junit.Assert.fail;
28 fail(); in data()
34 fail(); in headers()
38 fail(); in rstStream()
42 fail(); in settings()
46 fail(); in ackSettings()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/DebuggerOnDemand/
DOnthrowLaunchDebugger002.java2 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
12 * distributed under the License is distributed on an "AS IS" BASIS,
16 * limitations under the License.
36 * After every relevant step, debugger send message (OK or FAIL) to Test.
60 testSynchronizer.sendMessage("FAIL"); in testDebugger()
61 fail("exception during getting class signature"); in testDebugger()
71 testSynchronizer.sendMessage("FAIL"); in testDebugger()
72 fail("exception setting breakpoint"); in testDebugger()
[all …]
/external/jazzer-api/deploy/
Ddeploy.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
11 # distributed under the License is distributed on an "AS IS" BASIS,
14 # limitations under the License.
16 set -eu
18 fail() { function
23 cd "$BUILD_WORKSPACE_DIRECTORY" || fail "BUILD_WORKSPACE_DIRECTORY not found"
27 [ -z "${MAVEN_USER+x}" ] && \
28 fail "Set MAVEN_USER to the Sonatype OSSRH user"
29 [ -z "${MAVEN_PASSWORD+x}" ] && \
[all …]
/external/bazel-skylib/tests/
Dunittest_test.sh5 # Licensed under the Apache License, Version 2.0 (the "License");
9 # http://www.apache.org/licenses/LICENSE-2.0
12 # distributed under the License is distributed on an "AS IS" BASIS,
15 # limitations under the License.
20 # analysis-phase tests written with unittest.bzl appropriately
23 # --- begin runfiles.bash initialization ---
24 set -euo pipefail
25 if [[ ! -d "${RUNFILES_DIR:-/dev/null}" && ! -f "${RUNFILES_MANIFEST_FILE:-/dev/null}" ]]; then
26 if [[ -f "$0.runfiles_manifest" ]]; then
28 elif [[ -f "$0.runfiles/MANIFEST" ]]; then
[all …]

12345678910>>...59