[binutils-gdb] Skip broken assembler test on Windows host.

Sandra Loosemore sandra@sourceware.org
Wed Sep 26 16:48:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ca60b3af44a74d2f430870ffbabc8ce158721dc4

commit ca60b3af44a74d2f430870ffbabc8ce158721dc4
Author: Sandra Loosemore <sandra@codesourcery.com>
Date:   Wed Sep 26 09:45:56 2018 -0700

    Skip broken assembler test on Windows host.
    
    2018-09-26  Sandra Loosemore  <sandra@codesourcery.com>
    
    	gas/
    	* testsuite/gas/all/gas.exp: Skip "Output file must be distinct
    	from input" test on Windows host.

Diff:
---
 gas/ChangeLog                 | 5 +++++
 gas/testsuite/gas/all/gas.exp | 6 +++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 72857e1..069f9cb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-26  Sandra Loosemore  <sandra@codesourcery.com>
+
+	* testsuite/gas/all/gas.exp: Skip "Output file must be distinct
+	from input" test on Windows host.
+
 2018-09-21  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR gas/23691
diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp
index 5335c89..c1237f9 100644
--- a/gas/testsuite/gas/all/gas.exp
+++ b/gas/testsuite/gas/all/gas.exp
@@ -73,7 +73,11 @@ if {    ![istarget alpha*-*-*vms*]
 gas_test_error "equiv1.s" "" ".equiv for symbol already set to another one"
 gas_test_error "equiv2.s" "" ".equiv for symbol already set to an expression"
 
-gas_test_error "none.s" "-o $srcdir/$subdir/none.s" "Output file must be distinct from input"
+# The inode comparison used to detect identical input and output files
+# doesn't work on non-Posix hosts.
+if { ![ishost "*-*-mingw*"] } then {
+    gas_test_error "none.s" "-o $srcdir/$subdir/none.s" "Output file must be distinct from input"
+}
 
 # .equ works differently on some targets.
 case $target_triplet in {



More information about the Binutils-cvs mailing list