Home
last modified time | relevance | path

Searched refs:expect (Results 201 - 225 of 723) sorted by relevance

12345678910>>...29

/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/
H A Dmain.rs158 .expect("unittest executable path") in build_dir()
160 .expect("debug/release directory") in build_dir()
166 build_dir().parent().expect("target directory").to_path_buf() in target_dir()
171 target_dir().parent().expect("project directory").to_path_buf() in project_dir()
202 let paths = fs::read_dir(data_dir()).expect("Please update the Git submodule"); in main()
/kernel/linux/linux-5.10/lib/
H A Dtest_printf.c39 do_test(int bufsize, const char *expect, int elen, in do_test() argument
85 if (memcmp(test_buffer, expect, written)) { in do_test()
87 bufsize, fmt, test_buffer, written, expect); in do_test()
94 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
115 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
118 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
119 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
124 if (memcmp(p, expect, elen+1)) { in __test()
126 fmt, p, expect); in __test()
134 #define test(expect, fm
[all...]
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dreloc_test_core.c36 u64 expect; member
62 ret == funcs[i].expect ? "pass" : "fail"); in reloc_test_init()
63 if (ret != funcs[i].expect) in reloc_test_init()
65 funcs[i].expect, ret); in reloc_test_init()
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dreloc_test_core.c36 u64 expect; member
62 ret == funcs[i].expect ? "pass" : "fail"); in reloc_test_init()
63 if (ret != funcs[i].expect) in reloc_test_init()
65 funcs[i].expect, ret); in reloc_test_init()
/third_party/icu/icu4c/source/test/cintltst/
H A Dnccbtst.h50 UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
55 UBool testConvertToUnicode( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
59 UBool testConvertFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
63 UBool testConvertToUnicodeWithContext( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
/third_party/rust/crates/bindgen/bindgen/ir/
H A Ditem_kind.rs56 self.as_module().expect("Not a module") in expect_module()
76 self.as_function().expect("Not a function") in expect_function()
105 self.as_type().expect("Not a type") in expect_type()
125 self.as_var().expect("Not a var") in expect_var()
/third_party/rust/crates/nix/test/
H A Dtest_timer.rs40 .expect("unable to set signal handler for alarm") in alarm_fires()
52 Timer::new(clockid, sigevent).expect("failed to create timer"); in alarm_fires()
55 timer.set(expiration, flags).expect("could not set timer"); in alarm_fires()
100 sigaction(SIG, &old_handler).expect("unable to reset signal handler"); in alarm_fires()
H A Dtest_unistd.rs46 match unsafe { fork() }.expect("Error: Fork Failed") { in test_fork_and_waitpid()
75 match unsafe { fork() }.expect("Error: Fork Failed") { in test_wait()
461 fchdir(tmpdir_fd).expect("assertion failed"); in test_fchdir()
464 close(tmpdir_fd).expect("assertion failed"); in test_fchdir()
474 chdir(&tmpdir_path).expect("assertion failed"); in test_getcwd()
486 .expect("assertion failed"); in test_getcwd()
488 chdir(inner_tmp_dir.as_path()).expect("assertion failed"); in test_getcwd()
647 .expect("fpathconf failed") in test_fpathconf_limited()
648 .expect("PATH_MAX is unlimited") in test_fpathconf_limited()
659 .expect("pathcon in test_pathconf_limited()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dincaltst.cpp470 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
475 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
479 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
484 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
488 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
493 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
497 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local
502 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat()
576 UnicodeString expect = CharsToUnicodeString("\\u5e73\\u621013\\u5e749\\u67088\\u65e5\\u571f\\u66dc\\u65e5"); in TestJapaneseFormat() local
581 simpleTest(loc, expect, expectDat in TestJapaneseFormat()
584 UnicodeString expect = CharsToUnicodeString("\\\\u5e73\\\\u621013\\\\u5e749\\\\u67088\\\\u65e5\\\\u571f\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
592 UnicodeString expect = CharsToUnicodeString("\\\\u5b89\\\\u6c385\\\\u5e747\\\\u67084\\\\u65e5\\\\u6728\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
601 UnicodeString expect = CharsToUnicodeString("\\\\u662d\\\\u548c64\\\\u5e741\\\\u67086\\\\u65e5\\\\u91d1\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
610 UnicodeString expect = CharsToUnicodeString("\\\\u5E73\\\\u6210\\\\u5143\\\\u5E741\\\\u67089\\\\u65E5\\\\u6708\\\\u66DC\\\\u65E5"); TestJapaneseFormat() local
619 UnicodeString expect = CharsToUnicodeString("\\\\u5EB7\\\\u6B632\\\\u5e742\\\\u670829\\\\u65e5\\\\u65e5\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local
1102 simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status) simpleTest() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dattr.py164 self.expect = {}
167 self.load_events(path, self.expect)
237 def compare(self, expect, result):
244 for exp_name, exp_event in expect.items():
273 for exp_name, exp_event in expect.items():
314 self.resolve_groups(self.expect);
318 self.compare(self.expect, self.result)
319 self.compare(self.result, self.expect)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/
H A D_parser.py73 name_token = tokenizer.expect(
83 tokenizer.expect("END", expected="end of dependency specifier")
105 url = tokenizer.expect("URL", expected="URL after @").text
109 tokenizer.expect("WS", expected="whitespace after URL")
199 extra_token = tokenizer.expect("IDENTIFIER", expected="extra name after comma")
260 tokenizer.expect("END", expected="end of marker expression")
350 tokenizer.expect("WS", expected="whitespace after 'not'")
351 tokenizer.expect("IN", expected="'in' after 'not'")
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/hwi_nesting/
H A DIt_hwi_nesting.c56 UINT32 CheckIntrTrace(UINT32 *expect, UINT32 num) in CheckIntrTrace() argument
61 if ((expect == NULL) || (num > RECORD_SIZE)) { in CheckIntrTrace()
66 if (expect[idx] != g_intrTrace[idx]) { in CheckIntrTrace()
/third_party/rust/crates/libloading/tests/
H A Dwindows.rs19 Library::new("tests/nagisa32.dll").expect("nagisa32.dll") in load_ordinal_lib()
26 Library::new("tests/nagisa64.dll").expect("nagisa64.dll") in load_ordinal_lib()
35 let windows: Symbol<unsafe fn() -> *const i8> = lib.get_ordinal(1).expect("function"); in test_ordinal()
/device/qemu/riscv32_virt/liteos_m/board/driver/cfiflash/
H A Dcfiflash.c94 static inline int CfiFlashQueryUint8(unsigned wordOffset, uint8_t expect, uint8_t *p) in CfiFlashQueryUint8() argument
96 if (p[W2B(wordOffset)] != expect) { in CfiFlashQueryUint8()
97 PRINT_ERR("[%s]name:0x%x value:%u expect:%u \n", __func__, wordOffset, p[W2B(wordOffset)], expect); in CfiFlashQueryUint8()
103 static inline int CfiFlashQueryUint16(unsigned wordOffset, uint16_t expect, uint8_t *p) in CfiFlashQueryUint16() argument
108 if (v != expect) { in CfiFlashQueryUint16()
109 PRINT_ERR("[%s]name:0x%x value:%u expect:%u \n", __func__, wordOffset, v, expect); in CfiFlashQueryUint16()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Dqos_dscp_bridge.sh163 local expect
165 expect=10
167 expect=0
171 ((expect == delta))
172 check_err $? "DSCP $key: Expected to capture $expect packets, got $delta."
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
H A Dcpuset_base_ops_testset.sh190 # attach_task_test <cpus> <mems> <expect>
195 local expect=$3
229 if [ $? -eq $expect ]; then
232 tst_resm TFAIL "Attaching Task Test failed!! cpus - \"$cpus\", mems - \"$mems\", Expect - \"$expect\", Fact - \"$ret\". (0 - Attach Success, 1 - Attach Fail)"
248 while read cpus mems expect
250 attach_task_test "$cpus" "$mems" "$expect"
256 # while read cpus mems expect
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/parser/
H A Dparser_test.go27 expect ast.AST
183 gotStr, expectStr := got.String(), test.expect.String()
193 expect string
203 if gotErr := err.Error(); test.expect != gotErr {
204 t.Errorf(`Parse() returned error "%+v", expected error "%+v"`, gotErr, test.expect)
/third_party/rust/crates/rust-openssl/openssl-sys/build/
H A Drun_bindgen.rs144 .expect("Failed to create boring_static_wrapper.h") in run_boringssl()
146 .expect("Failed to write contents to boring_static_wrapper.h"); in run_boringssl()
166 .expect("Failed to create boring_static_wrapper.h") in run_boringssl()
168 .expect("Failed to write contents to boring_static_wrapper.h"); in run_boringssl()
200 let result = bindgen_cmd.status().expect("bindgen failed to execute"); in run_boringssl()
/third_party/rust/crates/nix/test/sys/
H A Dtest_termios.rs24 let pty = openpty(None, None).expect("openpty failed"); in test_tcgetattr_pty()
26 close(pty.master).expect("closing the master failed"); in test_tcgetattr_pty()
27 close(pty.slave).expect("closing the slave failed"); in test_tcgetattr_pty()
54 let pty = openpty(None, None).expect("openpty failed"); in test_output_flags()
57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags()
H A Dtest_sockopt.rs304 .expect("setting ipv4ttl on an inet socket should succeed"); in test_ttl_opts()
313 .expect("setting ipv6ttl on an inet6 socket should succeed"); in test_ttl_opts()
327 .expect("setting IP_DONTFRAG on an inet stream socket should succeed"); in test_dontfrag_opts()
328 setsockopt(fd4, sockopt::IpDontFrag, &false).expect( in test_dontfrag_opts()
338 setsockopt(fd4d, sockopt::IpDontFrag, &true).expect( in test_dontfrag_opts()
341 setsockopt(fd4d, sockopt::IpDontFrag, &false).expect( in test_dontfrag_opts()
364 setsockopt(fd6, sockopt::Ipv6DontFrag, &true).expect( in test_v6dontfrag_opts()
367 setsockopt(fd6, sockopt::Ipv6DontFrag, &false).expect( in test_v6dontfrag_opts()
377 setsockopt(fd6d, sockopt::Ipv6DontFrag, &true).expect( in test_v6dontfrag_opts()
380 setsockopt(fd6d, sockopt::Ipv6DontFrag, &false).expect( in test_v6dontfrag_opts()
[all...]
/third_party/skia/tests/
H A DGrClipStackTest.cpp55 // .expect().rect(r, GrAA::kYes, SkClipOp::kIntersect)
171 ElementsBuilder expect() { return ElementsBuilder(this, &fExpectedElements); } in expect() function in __anon19011::TestCaseBuilder
526 .expect().aa().intersect().rect(fracIntersect).finishElements() in DEF_TEST()
535 .expect().nonAA().intersect().rect(fracIntersect).finishElements() in DEF_TEST()
544 .expect().nonAA().intersect().rect(alignedIntersect).finishElements() in DEF_TEST()
553 .expect().aa().intersect().rect(alignedIntersect).finishElements() in DEF_TEST()
606 .expect().aa().intersect().localToDevice(lm) in DEF_TEST()
616 .expect().nonAA().intersect().localToDevice(lm) in DEF_TEST()
647 .expect().aa().intersect().rrect(intersect).finishElements() in DEF_TEST()
656 .expect() in DEF_TEST()
[all...]
/third_party/node/test/parallel/
H A Dtest-http-zero-length-write.js62 const expect = 'asdffoobar';
71 assert.strictEqual(actual, expect);
86 assert.strictEqual(actual, expect);
H A Dtest-http2-zero-length-write.js24 const expect = 'asdffoobar';
35 assert.strictEqual(actual, expect);
47 assert.strictEqual(actual, expect);
/third_party/rust/crates/libc/ci/
H A Druntest-android.rs17 .expect("failed to run: adb wait-for-device"); in main()
25 .expect("failed to run: adb push"); in main()
33 .expect("failed to run: adb shell"); in main()
/third_party/skia/third_party/externals/spirv-tools/test/tools/
H A Dexpect_unittest.py14 """Tests for the expect module."""
16 import expect namespace
22 class TestStdoutMatchADotC(expect.StdoutMatch):
42 expect.get_object_filename(f[0]) for f in source_and_object_names

Completed in 14 milliseconds

12345678910>>...29