File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
4
+ # file at the top-level directory of this distribution and at
5
+ # http://rust-lang.org/COPYRIGHT.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8
+ # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9
+ # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10
+ # option. This file may not be copied, modified, or distributed
11
+ # except according to those terms.
2
12
3
13
# A script to update the references for all tests. The idea is that
4
14
# you do a run, which will generate files in the build directory
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
4
+ # file at the top-level directory of this distribution and at
5
+ # http://rust-lang.org/COPYRIGHT.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8
+ # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9
+ # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10
+ # option. This file may not be copied, modified, or distributed
11
+ # except according to those terms.
2
12
3
13
# A script to update the references for particular tests. The idea is
4
14
# that you do a run, which will generate files in the build directory
@@ -30,7 +40,6 @@ while [[ "$1" != "" ]]; do
30
40
echo updating $MYDIR /$STDOUT_NAME
31
41
cp $BUILD_DIR /$STDOUT_NAME $MYDIR /$STDOUT_NAME
32
42
fi
33
-
34
43
if [ -f $BUILD_DIR /$STDERR_NAME ] && \
35
44
! (diff $BUILD_DIR /$STDERR_NAME $MYDIR /$STDERR_NAME > /dev/null); then
36
45
echo updating $MYDIR /$STDERR_NAME
Original file line number Diff line number Diff line change @@ -2159,7 +2159,8 @@ actual:\n\
2159
2159
match File :: open ( path) . and_then ( |mut f| f. read_to_string ( & mut result) ) {
2160
2160
Ok ( _) => result,
2161
2161
Err ( e) => {
2162
- self . fatal ( & format ! ( "failed to load expected output from `{}`: {}" , path. display( ) , e) )
2162
+ self . fatal ( & format ! ( "failed to load expected output from `{}`: {}" ,
2163
+ path. display( ) , e) )
2163
2164
}
2164
2165
}
2165
2166
}
You can’t perform that action at this time.
0 commit comments