[libc-commits] [libc] [libc][test] make `str_to_float_comparison_test` independent of C++ headers. (PR #133978)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Apr 1 15:25:49 PDT 2025
================
@@ -150,24 +149,23 @@ int main(int argc, char *argv[]) {
int detailedBitDiffs[4] = {0, 0, 0, 0};
int total = 0;
- for (int i = 1; i < argc; i++) {
- std::cout << "Starting file " << argv[i] << "\n";
- int curResult =
- checkFile(argv[i], &fails, &bitdiffs, detailedBitDiffs, &total);
- if (curResult == 1) {
- result = 1;
- break;
- } else if (curResult == 2) {
- result = 2;
- }
+
+ char filename[] = "str_to_float_comparison_data.txt";
----------------
michaelrj-google wrote:
Ideally this test would still be able to read from a list of files, even if it doesn't normally. It's intended to be used with https://github.com/nigeltao/parse-number-fxx-test-data which has the tests spread over many files.
https://github.com/llvm/llvm-project/pull/133978
More information about the libc-commits
mailing list