File: diffoscope-fix-llvm-test.patch

package info (click to toggle)
guix 1.4.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 161,500 kB
  • sloc: lisp: 861,023; cpp: 10,741; javascript: 9,632; sh: 8,913; makefile: 951; ansic: 558; python: 129; sql: 33; sed: 16
file content (29 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From b7eeac09eb068083bdee1a3aa062d1e52a2fa61a Mon Sep 17 00:00:00 2001
From: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Mon, 4 Oct 2021 21:03:43 +0200
Subject: [PATCH] gnu: diffoscope: Fix test_item3_deflate_llvm_bitcode.

Taken verbatim from Nixpkgs[0].  Later extended for diffoscope >= 224.

[0]: https://github.com/NixOS/nixpkgs/blob/589e03f109092a3ba97781fd0533110bf78a3f97/pkgs/tools/misc/diffoscope/fix-tests.patch
---
 tests/comparators/test_rlib.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/comparators/test_rlib.py b/tests/comparators/test_rlib.py
index 8a20114d..64cea17f 100644
--- a/tests/comparators/test_rlib.py
+++ b/tests/comparators/test_rlib.py
@@ -80,12 +80,6 @@ def rlib_dis_expected_diff():
     if actual_ver >= "7.0":
         diff_file = "rlib_llvm_dis_expected_diff_7"
 
-    if actual_ver >= "10.0":
-        diff_file = "rlib_llvm_dis_expected_diff_10"
-
-    if actual_ver >= "15.0":
-        diff_file = "rlib_llvm_dis_expected_diff_15"
-
     return get_data(diff_file)