Home
last modified time | relevance | path

Searched refs:test_str (Results 1 – 25 of 29) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c53 char test_str[] = "LTP"; in test_write_protect() local
55 ret = write(fd, test_str, strlen(test_str)); in test_write_protect()
60 fd, test_str, strlen(test_str)); in test_write_protect()
66 fd, test_str, strlen(test_str)); in test_write_protect()
72 fd, test_str, strlen(test_str)); in test_write_protect()
/third_party/selinux/libsepol/cil/test/unit/
Dtest_cil_lexer.c38 char *test_str = "(test \"qstring\");comment\n"; in test_cil_lexer_setup() local
39 uint32_t str_size = strlen(test_str); in test_cil_lexer_setup()
43 strncpy(buffer, test_str, str_size); in test_cil_lexer_setup()
52 char *test_str = "(test \"qstring\") ;comment\n"; in test_cil_lexer_next() local
53 uint32_t str_size = strlen(test_str); in test_cil_lexer_next()
57 strcpy(buffer, test_str); in test_cil_lexer_next()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/tests/
Dsfn_optimizer_test.cpp274 ostringstream test_str; in check() local
275 s->print(test_str); in check()
282 EXPECT_EQ(test_str.str(), expect_str.str()); in check()
288 ostringstream test_str; in ra_check() local
289 s->print(test_str); in ra_check()
297 EXPECT_EQ(test_str.str(), expect_str.str()); in ra_check()
/third_party/ltp/testcases/kernel/device-drivers/uaccess/
Dltp_uaccess.c75 test_result = strncmp(test_str, buffer, str_size) ? 1 : 0; in sys_tcase()
78 test_result |= ch != test_str[0]; in sys_tcase()
81 if (copy_to_user(str + 1, test_str + 1, str_size - 1)) { in sys_tcase()
86 if (put_user(test_str[0], str)) { in sys_tcase()
Dltp_uaccess.h24 static const char test_str[] = "Test string"; variable
25 static const int str_size = sizeof(test_str);
Duaccess.c65 int res = set_ptr_to_sysfs(TC_READ_USER, test_str, in tc_read_userspace()
88 res = strncmp(buf, test_str, str_size) ? TFAIL : TPASS; in tc_write_userspace()
/third_party/ltp/pan/
Dsplitstr.c166 char test_str[32768]; in main() local
177 test_str[0] = '\0'; in main()
180 strncat(test_str, buf, 16); in main()
182 ret = splitstr(test_str, NULL, &size_ret); in main()
/third_party/node/test/internet/
Dtest-trace-events-dns.js18 const test_str = 'const dns = require("dns");' + constant
48 test_str + tests[tr],
/third_party/mbedtls/tests/scripts/
Dtest_generate_test_code.py1206 test_str = 'yahoo:google'
1207 splits = escaped_split(test_str, ':')
1208 self.assertEqual(splits, test_str.split(':'))
1215 test_str = r'yahoo\:google:facebook'
1216 splits = escaped_split(test_str, ':')
1224 test_str = r'yahoo\\:google:facebook'
1225 splits = escaped_split(test_str, ':')
1233 test_str = r'yahoo\\:google:facebook\:instagram\\:bbc\\:wikipedia'
1234 splits = escaped_split(test_str, ':')
/third_party/jerryscript/tests/unit-core/
Dtest-api-strings.cpp212 jerry_value_t test_str = jerry_create_string ((const jerry_char_t *) "3"); variable
214 jerry_size_t copied_utf8 = jerry_substring_to_utf8_char_buffer (test_str,
223 jerry_size_t copied = jerry_substring_to_char_buffer (test_str,
231 jerry_release_value (test_str);
/third_party/curl/lib/
Dsetup-vms.h87 char *test_str; in vms_translate_path() local
91 test_str = strpbrk(path, ":[<^"); in vms_translate_path()
92 if(!test_str) { in vms_translate_path()
/third_party/libuv/test/
Dtest-spawn.c1148 const WCHAR* test_str[] = { in TEST_IMPL() local
1160 const int count = sizeof(test_str) / sizeof(*test_str); in TEST_IMPL()
1181 test_output[i] = calloc(2 * (wcslen(test_str[i]) + 2), sizeof(WCHAR)); in TEST_IMPL()
1182 quote_cmd_arg(test_str[i], test_output[i]); in TEST_IMPL()
1183 wprintf(L"input : %s\n", test_str[i]); in TEST_IMPL()
1199 wprintf(L"%d: %s\t%s\n", i, test_str[i], cracked[i]); in TEST_IMPL()
1200 ASSERT(wcscmp(test_str[i], cracked[i]) == 0); in TEST_IMPL()
/third_party/python/Lib/test/
Dtest_xxlimited.py33 def test_str(self): member in CommonTests
Dtest_bool.py27 def test_str(self): member in BoolTest
Dtest_marshal.py338 def test_str(self, size): member in LargeValuesTestCase
Dtest__xxsubinterpreters.py555 def test_str(self): member in InterpreterIDTests
1123 def test_str(self): member in ChannelIDTests
Dtest_enum.py2240 def test_str(self): member in TestFlag
2705 def test_str(self): member in TestIntFlag
Dtest_exceptions.py639 def test_str(self): member in ExceptionTests
/third_party/rust/crates/unicode-width/src/
Dtests.rs114 fn test_str() { in test_str() function
/third_party/rust/crates/quote/tests/
Dtest.rs221 fn test_str() { in test_str() function
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py65 def test_str(self): member in TestMockingMagicMethods
/third_party/rust/crates/serde/test_suite/tests/
Dtest_ser.rs111 fn test_str() { in test_str() function
/third_party/python/Lib/test/test_asyncio/
Dtest_queues.py74 def test_str(self): member in QueueBasicTests
/third_party/python/Lib/test/test_email/
Dtest_headerregistry.py84 def test_str(self): member in TestBaseHeaderFeatures
/third_party/python/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py150 def test_str(self): member in ZoneInfoTest

12