This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix failing print-memory-usage-1 on Windows
- From: Senthil Kumar Selvaraj <senthilkumar dot selvaraj at microchip dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 31 Jan 2017 14:41:55 +0530
- Subject: Fix failing print-memory-usage-1 on Windows
- Authentication-results: sourceware.org; auth=none
Hi,
The below trivial patch slightly relaxes the percentage used value in
print-memory-usage-1.l to make it pass on Windows (Win 10 x64 using
WSL subsystem).
Ok for master?
Regards
Senthil
ld/ChangeLog
2017-01-31 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
* testsuite/ld-scripts/print-memory-usage-1.l: Relax
check for digit in second decimal place.
diff --git ld/testsuite/ld-scripts/print-memory-usage-1.l ld/testsuite/ld-scripts/print-memory-usage-1.l
index 34bc895..e666a63 100644
--- ld/testsuite/ld-scripts/print-memory-usage-1.l
+++ ld/testsuite/ld-scripts/print-memory-usage-1.l
@@ -1,3 +1,3 @@
Memory region Used Size Region Size %age Used
- ROM: 32 B 1 KB 3.12%
+ ROM: 32 B 1 KB 3.1[23]%
RAM: 32 B 256 KB 0.01%