Commit 3533239
committed
test.pl: Calling watchdog cancels existing ones
This enhances the code to work on cases like:
watchdog(5);
sleep 4;
watchdog(10);
sleep 8;
Prior to this commit, you had to explicitly cancel an existing watchdog
before setting a new one.
As a result of this commit, all possible wathdog variables get undef'd
early. This makes later undef calls redundant, so they are removed.
Suggested by Tony Cook1 parent dcdb676 commit 3533239
2 files changed
+7
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1844 | 1844 | | |
1845 | 1845 | | |
1846 | 1846 | | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
1850 | 1850 | | |
1851 | 1851 | | |
1852 | 1852 | | |
| |||
1860 | 1860 | | |
1861 | 1861 | | |
1862 | 1862 | | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
| 1863 | + | |
| 1864 | + | |
1869 | 1865 | | |
1870 | 1866 | | |
1871 | 1867 | | |
| |||
1915 | 1911 | | |
1916 | 1912 | | |
1917 | 1913 | | |
1918 | | - | |
1919 | 1914 | | |
1920 | 1915 | | |
1921 | 1916 | | |
| |||
1966 | 1961 | | |
1967 | 1962 | | |
1968 | 1963 | | |
1969 | | - | |
1970 | 1964 | | |
1971 | 1965 | | |
1972 | 1966 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
| 492 | + | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
0 commit comments