[libc-commits] [libc] [libc][test] make `str_to_float_comparison_test` independent of C++ headers. (PR #133978)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Tue Apr 1 17:51:24 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";
----------------
bassiounix wrote:

I'll change it to comma separated file names passed as env variable via cmake.

https://github.com/llvm/llvm-project/pull/133978


More information about the libc-commits mailing list