Skip to content

Commit c62d258

Browse files
remove extra cases
1 parent 235af01 commit c62d258

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

code/tests/cases/test_input.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,19 +217,6 @@ FOSSIL_TEST_CASE(c_test_io_validate_sanitize_string) {
217217
ASSUME_ITS_EQUAL_CSTR(expected, output);
218218
}
219219

220-
FOSSIL_TEST_CASE(c_test_io_validate_read_secure_line) {
221-
const char *input_data = "secure input\n";
222-
FILE *input_stream = tmpfile();
223-
fwrite(input_data, 1, strlen(input_data), input_stream);
224-
rewind(input_stream);
225-
226-
char buffer[20];
227-
int result = fossil_io_validate_read_secure_line(buffer, sizeof(buffer));
228-
ASSUME_ITS_TRUE(result);
229-
ASSUME_ITS_EQUAL_CSTR("secure input", buffer);
230-
fclose(input_stream);
231-
}
232-
233220
// * * * * * * * * * * * * * * * * * * * * * * * *
234221
// * Fossil Logic Test Pool
235222
// * * * * * * * * * * * * * * * * * * * * * * * *
@@ -253,7 +240,6 @@ FOSSIL_TEST_GROUP(c_input_tests) {
253240
FOSSIL_TEST_ADD(c_input_suite, c_test_io_validate_is_length_valid);
254241
FOSSIL_TEST_ADD(c_input_suite, c_test_io_validate_is_length_invalid);
255242
FOSSIL_TEST_ADD(c_input_suite, c_test_io_validate_sanitize_string);
256-
FOSSIL_TEST_ADD(c_input_suite, c_test_io_validate_read_secure_line);
257243

258244
FOSSIL_TEST_REGISTER(c_input_suite);
259245
}

code/tests/cases/test_input.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -264,19 +264,6 @@ FOSSIL_TEST_CASE(cpp_test_io_validate_sanitize_string) {
264264
ASSUME_ITS_EQUAL_CSTR(expected, output);
265265
}
266266

267-
FOSSIL_TEST_CASE(cpp_test_io_validate_read_secure_line) {
268-
const char *input_data = "secure input\n";
269-
FILE *input_stream = tmpfile();
270-
fwrite(input_data, 1, strlen(input_data), input_stream);
271-
rewind(input_stream);
272-
273-
char buffer[20];
274-
int result = fossil_io_validate_read_secure_line(buffer, sizeof(buffer));
275-
ASSUME_ITS_TRUE(result);
276-
ASSUME_ITS_EQUAL_CSTR("secure input", buffer);
277-
fclose(input_stream);
278-
}
279-
280267
// * * * * * * * * * * * * * * * * * * * * * * * *
281268
// * Fossil Logic Test Pool
282269
// * * * * * * * * * * * * * * * * * * * * * * * *
@@ -304,7 +291,6 @@ FOSSIL_TEST_GROUP(cpp_input_tests) {
304291
FOSSIL_TEST_ADD(cpp_input_suite, cpp_test_io_validate_is_length_valid);
305292
FOSSIL_TEST_ADD(cpp_input_suite, cpp_test_io_validate_is_length_invalid);
306293
FOSSIL_TEST_ADD(cpp_input_suite, cpp_test_io_validate_sanitize_string);
307-
FOSSIL_TEST_ADD(cpp_input_suite, cpp_test_io_validate_read_secure_line);
308294

309295
FOSSIL_TEST_REGISTER(cpp_input_suite);
310296
}

0 commit comments

Comments
 (0)