mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
tests/bin/modelQaTestRoutines.pm, avoid defined(@array) is deprecated warning
This commit is contained in:
@@ -136,7 +136,7 @@ sub processSetup {
|
||||
die("ERROR: floating pin $pin is not a specified device pin, stopped");
|
||||
}
|
||||
}
|
||||
if (!defined(@main::DefaultTemperature)) {
|
||||
unless (@main::DefaultTemperature) {
|
||||
@main::DefaultTemperature=(27);
|
||||
}
|
||||
foreach $temperature (@main::DefaultTemperature) {
|
||||
@@ -412,7 +412,7 @@ sub processTestSpec {
|
||||
}
|
||||
die("ERROR: unknown test directive\n$_\nstopped");
|
||||
}
|
||||
if (!defined(@main::Temperature)) {
|
||||
unless (@main::Temperature) {
|
||||
@main::Temperature=@main::DefaultTemperature;
|
||||
}
|
||||
if (abs($main::outputDc+$main::outputAc+$main::outputNoise-1) > 0.001) {
|
||||
|
||||
Reference in New Issue
Block a user