Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / find / testsuite / find.gnu / sv-bug-24169.exp
index 349e823..120a18b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # The command:
 #   find -neweraa
-# is not valid because there is a missing argument. 
+# is not valid because there is a missing argument.
 # The result should be a clean exit with nonzero status.
 # However, it segfaults in 4.4.0.
 #
@@ -15,11 +15,11 @@ if {[which $FTSFIND] == 0} then {
 
 set scriptname [info script]
 set testbase [file rootname $scriptname]
-set test [file tail $testbase] 
+set test [file tail $testbase]
 set testname "$test.generic"
 
 set cmd "$FTSFIND -neweraa"
-set expected 1 
+set expected 1
 
 send_log "$cmd\n"
 eval spawn -noecho $cmd
@@ -31,17 +31,17 @@ if { [ lindex $result 2 ] == 0  } then {
     set status [ lindex $result 3]
     if { [llength $result] > 4 } then {
        if { [lindex $result 4] == "CHILDKILLED" } then {
-           fail "$testname, $cmd was killed: [lrange $result 5 end]" 
+           fail "$testname, $cmd was killed: [lrange $result 5 end]"
        } else {
-           unresolved "$testname, $cmd had unexpected extended status $result" 
+           unresolved "$testname, $cmd had unexpected extended status $result"
        }
     } else {
        if { $status != 1 } then {
-           unresolved "$testname, $cmd had unexpected status $status" 
+           unresolved "$testname, $cmd had unexpected status $status"
        } else {
            pass "$testname"
        }
     }
 } else {
-    unresolved "$testname, failed to run $cmd" 
+    unresolved "$testname, failed to run $cmd"
 }