| 1 |
Fromscip-debian debian golang-github-u-root-uio 0.0~git20240224.d2acac8-1 golang-github-u-root-uio/patches/`000-fix-lz4-legacy-tests.patch`#From.: Mathias Gibbens <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Descriptionscip-debian debian golang-github-u-root-uio 0.0~git20240224.d2acac8-1 golang-github-u-root-uio/patches/`000-fix-lz4-legacy-tests.patch`#Description.: Fix failing tests |
| 3 |
Forwardedscip-debian debian golang-github-u-root-uio 0.0~git20240224.d2acac8-1 golang-github-u-root-uio/patches/`000-fix-lz4-legacy-tests.patch`#Forwarded.: https://github.com/u-root/uio/issues/26 |
| 4 |
diff --git a/uio/archivereader_test.goscip-debian debian golang-github-u-root-uio 0.0~git20240224.d2acac8-1 golang-github-u-root-uio/upstream/`uio/archivereader_test.go`: b/uio/archivereader_test.goscip-debian debian golang-github-u-root-uio 0.0~git20240224.d2acac8-1 golang-github-u-root-uio/upstream/`uio/archivereader_test.go`: |
| 5 |
index 012b373..3b57bfd 100644 |
| 6 |
--- a/uio/archivereader_test.go |
| 7 |
+++ b/uio/archivereader_test.go |
| 8 |
@@ -101,8 +101,11 @@ func checkArchiveReaderLZ4(t *testing.T, tt archiveReaderLZ4Case) { |
| 9 |
if _, err := io.Copy(buf, ar); err != nil { |
| 10 |
t.Errorf("io.Copy(%v, %v) returned error: %v, want nil.", buf, ar, err) |
| 11 |
} |
| 12 |
|
| 13 |
|
| 14 |
+ |
| 15 |
+ r := strings.TrimRight(buf.String(), "\x00") |
| 16 |
+ |
| 17 |
+ if r != tt.dataStr { |
| 18 |
+ t.Errorf("got %s, want %s", r, tt.dataStr) |
| 19 |
} |
| 20 |
} |
| 21 |
|