[PATCH] D62626: Remove length modifier when using assignment suppression in TimerTest

António Afonso via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 11:11:18 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL362107: Remove length modifier when using assignment suppression in TimerTest (authored by aadsm, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D62626?vs=202046&id=202242#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62626/new/

https://reviews.llvm.org/D62626

Files:
  lldb/trunk/unittests/Utility/TimerTest.cpp


Index: lldb/trunk/unittests/Utility/TimerTest.cpp
===================================================================
--- lldb/trunk/unittests/Utility/TimerTest.cpp
+++ lldb/trunk/unittests/Utility/TimerTest.cpp
@@ -62,7 +62,7 @@
   Timer::DumpCategoryTimes(&ss);
   double seconds1, seconds2;
   ASSERT_EQ(2, sscanf(ss.GetData(),
-                      "%lf sec (total: %*lfs; child: %*lfs; count: %*d) for "
+                      "%lf sec (total: %*fs; child: %*fs; count: %*d) for "
                       "CAT1%*[\n ]%lf sec for CAT2",
                       &seconds1, &seconds2))
       << "String: " << ss.GetData();
@@ -98,7 +98,7 @@
   ASSERT_EQ(
       6, sscanf(ss.GetData(),
                 "%lf sec (total: %lfs; child: %lfs; count: %d) for CAT1%*[\n ]"
-                "%lf sec (total: %*lfs; child: %*lfs; count: %d) for CAT2",
+                "%lf sec (total: %*fs; child: %*fs; count: %d) for CAT2",
                 &seconds1, &total1, &child1, &count1, &seconds2, &count2))
       << "String: " << ss.GetData();
   EXPECT_NEAR(total1 - child1, seconds1, 0.002);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62626.202242.patch
Type: text/x-patch
Size: 1085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/de94b027/attachment.bin>


More information about the llvm-commits mailing list