anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / science / electronics / openroad / 0002-Ignore-warning-on-stderr.patch
blobf0b0666789a79ea699fb5ee8034f1550da388420
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Nicolas Benes <nbenes.gh@xandea.de>
3 Date: Sun, 2 Apr 2023 04:57:17 +0200
4 Subject: [PATCH] Ignore warning on stderr
6 The following warning is written to stderr, which causes the overall
7 test to fail:
9 ```
10 sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
11 ```
13 diff --git a/src/dst/test/cpp_tests.tcl b/src/dst/test/cpp_tests.tcl
14 index 9087c2c..63d0cb7 100644
15 --- a/src/dst/test/cpp_tests.tcl
16 +++ b/src/dst/test/cpp_tests.tcl
17 @@ -4,7 +4,7 @@ set test_dir [pwd]
18 set openroad_dir [file dirname [file dirname [file dirname $test_dir]]]
19 set tests_path [file join $openroad_dir "build" "src" "dst" "test" "cpp"]
21 -set tests_list [split [exec sh -c "find $tests_path -maxdepth 1 -name 'Test*'"] \n]
22 +set tests_list [split [exec -ignorestderr sh -c "find $tests_path -maxdepth 1 -name 'Test*'"] \n]
24 foreach test $tests_list {
25 set test_name [file tail $test]
26 diff --git a/src/odb/test/cpp_tests.tcl b/src/odb/test/cpp_tests.tcl
27 index 091d576..6811760 100644
28 --- a/src/odb/test/cpp_tests.tcl
29 +++ b/src/odb/test/cpp_tests.tcl
30 @@ -4,7 +4,7 @@ set test_dir [pwd]
31 set openroad_dir [file dirname [file dirname [file dirname $test_dir]]]
32 set tests_path [file join $openroad_dir "build" "src" "odb" "test" "cpp"]
34 -set tests_list [split [exec sh -c "find $tests_path -maxdepth 1 -name 'Test*' ! -name '*.cmake'"] \n]
35 +set tests_list [split [exec -ignorestderr sh -c "find $tests_path -maxdepth 1 -name 'Test*' ! -name '*.cmake'"] \n]
37 foreach test $tests_list {
38 set test_name [file tail $test]
39 --
40 2.38.4