File: avoid-test-crash.patch

package info (click to toggle)
nextpnr 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 45,032 kB
  • sloc: cpp: 218,128; python: 24,276; ansic: 10,907; pascal: 1,328; sh: 849; makefile: 563; vhdl: 44; objc: 42; tcl: 41
file content (71 lines) | stat: -rw-r--r-- 1,718 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Description: Avoid crash when unable to open chipdb
Author: Simon Richter <sjr@debian.org>
Forwarded: no
Last-Update: 2025-10-04

--- a/ice40/tests/hx1k.cc
+++ b/ice40/tests/hx1k.cc
@@ -37,7 +37,7 @@ class HX1KTest : public ::testing::Test
     virtual void TearDown() { delete ctx; }
 
     ArchArgs chipArgs;
-    Context *ctx;
+    Context *ctx = nullptr;
 };
 
 TEST_F(HX1KTest, bel_names)
--- a/ice40/tests/hx8k.cc
+++ b/ice40/tests/hx8k.cc
@@ -37,7 +37,7 @@ class HX8KTest : public ::testing::Test
     virtual void TearDown() { delete ctx; }
 
     ArchArgs chipArgs;
-    Context *ctx;
+    Context *ctx = nullptr;
 };
 
 TEST_F(HX8KTest, bel_names)
--- a/ice40/tests/lp1k.cc
+++ b/ice40/tests/lp1k.cc
@@ -37,7 +37,7 @@ class LP1KTest : public ::testing::Test
     virtual void TearDown() { delete ctx; }
 
     ArchArgs chipArgs;
-    Context *ctx;
+    Context *ctx = nullptr;
 };
 
 TEST_F(LP1KTest, bel_names)
--- a/ice40/tests/lp384.cc
+++ b/ice40/tests/lp384.cc
@@ -37,7 +37,7 @@ class LP384Test : public ::testing::Test
     virtual void TearDown() { delete ctx; }
 
     ArchArgs chipArgs;
-    Context *ctx;
+    Context *ctx = nullptr;
 };
 
 TEST_F(LP384Test, bel_names)
--- a/ice40/tests/lp8k.cc
+++ b/ice40/tests/lp8k.cc
@@ -37,7 +37,7 @@ class LP8KTest : public ::testing::Test
     virtual void TearDown() { delete ctx; }
 
     ArchArgs chipArgs;
-    Context *ctx;
+    Context *ctx = nullptr;
 };
 
 TEST_F(LP8KTest, bel_names)
--- a/ice40/tests/up5k.cc
+++ b/ice40/tests/up5k.cc
@@ -37,7 +37,7 @@ class UP5KTest : public ::testing::Test
     virtual void TearDown() { delete ctx; }
 
     ArchArgs chipArgs;
-    Context *ctx;
+    Context *ctx = nullptr;
 };
 
 TEST_F(UP5KTest, bel_names)