diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-07-23 12:53:31 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2021-07-23 17:20:42 +0200 |
commit | f571d9d5f051f7dbaee8d0dbf32e5a93180285e9 (patch) | |
tree | 88498e2c53c61e6d048074672e92e446ee094c5c | |
parent | Merge pull request #20288 from keszybz/freeze-no-malloc (diff) | |
download | systemd-f571d9d5f051f7dbaee8d0dbf32e5a93180285e9.tar.xz systemd-f571d9d5f051f7dbaee8d0dbf32e5a93180285e9.zip |
test: make sure we don't access an unbound variable
```
testsuite-60.sh[759]: + grep -q '(mount-monitor-dispatch) entered rate limit'
testsuite-60.sh[571]: + sleep 5
testsuite-60.sh[761]: ++ date -u +%s
testsuite-60.sh[571]: + [[ 1627037066 -le 1627037061 ]]
testsuite-60.sh[571]: /usr/lib/systemd/tests/testdata/units/testsuite-60.sh: line 41: entered_rl: unbound variable
```
-rwxr-xr-x | test/units/testsuite-60.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/units/testsuite-60.sh b/test/units/testsuite-60.sh index 8158754667..06526776fd 100755 --- a/test/units/testsuite-60.sh +++ b/test/units/testsuite-60.sh @@ -26,6 +26,7 @@ done # figure out if we have entered the rate limit state +entered_rl=0 exited_rl=0 timeout="$(date -ud "2 minutes" +%s)" while [[ $(date -u +%s) -le ${timeout} ]]; do |