systemd: add missing patch for Musl
[NixPkgs.git] / pkgs / by-name / go / goredo / fix-tests.diff
blob7bb4b45725e569e161d82d6f80cb1ef509ed0f89
1 diff '--color=auto' -ru goredo-2.0.0/t/goredo-chmoding.t goredo-2.0.0.new/t/goredo-chmoding.t
2 --- goredo-2.0.0/t/goredo-chmoding.t 2023-10-08 18:50:45.000000000 +0200
3 +++ goredo-2.0.0.new/t/goredo-chmoding.t 2023-10-08 20:23:54.862618888 +0200
4 @@ -8,7 +8,7 @@
5 echo echo ok > foo.do
6 redo foo
7 test_expect_success "foo is non executable" '[ ! -x foo ]'
8 -inode0=`stat -f %i foo`
9 +inode0=`stat -c %i foo`
11 cat > foo.do <<EOF
12 echo ok > \$3
13 @@ -16,7 +16,7 @@
14 EOF
15 redo foo
16 test_expect_success "foo is executable" '[ -x foo ]'
17 -inode1=`stat -f %i foo`
18 +inode1=`stat -c %i foo`
19 test_expect_success "foo was not renamed" '[ $inode0 = $inode1 ]'
21 test_done
22 diff '--color=auto' -ru goredo-2.0.0/t/goredo-double-consideration.t goredo-2.0.0.new/t/goredo-double-consideration.t
23 --- goredo-2.0.0/t/goredo-double-consideration.t 2023-10-08 18:50:45.000000000 +0200
24 +++ goredo-2.0.0.new/t/goredo-double-consideration.t 2023-10-08 20:19:29.213465244 +0200
25 @@ -17,7 +17,7 @@
26 redo-stamp <"\$3"
27 EOF
28 cat > version.do <<EOF
29 -git rev-parse --short HEAD > "\$3"
30 +echo 012345 > "\$3"
31 redo-always
32 redo-stamp <"\$3"
33 EOF
34 diff '--color=auto' -ru goredo-2.0.0/t/redo-sh.tests/clean.do goredo-2.0.0.new/t/redo-sh.tests/clean.do
35 --- goredo-2.0.0/t/redo-sh.tests/clean 2023-10-08 18:50:45.000000000 +0200
36 +++ goredo-2.0.0.new/t/redo-sh.tests/clean 2023-10-08 20:19:29.213465244 +0200
37 @@ -1,4 +1,4 @@
38 for f in * ; do
39 [ -d $f ] || continue
40 - find $f ! -name test -delete
41 + find $f ! -name test -delete || true
42 done