[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0ed9de6 1/3: Avoid a race condition
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0ed9de6 1/3: Avoid a race condition |
Date: |
Tue, 19 May 2020 11:41:47 -0400 (EDT) |
branch: master
commit 0ed9de6e1e0f690b1f34a15d611bcb01766de3fe
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Avoid a race condition
See:
https://lists.nongnu.org/archive/html/lmi/2020-05/msg00033.html
---
test_coding_rules_test.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/test_coding_rules_test.sh b/test_coding_rules_test.sh
index ffd04fa..79c50f5 100755
--- a/test_coding_rules_test.sh
+++ b/test_coding_rules_test.sh
@@ -382,9 +382,9 @@ esac
another.unexpected.file \
eraseme* \
| sed -e '/^[ 0-9]\{9\} \(source files\|source lines\|marked defects\)/d' \
- >eraseme_observed
+ >observed_eraseme
-cat >eraseme_expected <<EOF
+cat >expected_eraseme <<EOF
Exception--file 'a_nonexistent_file': File not found.
File 'an_expungible_file.bak' ignored as being expungible.
Exception--file 'an_unexpected_file': File is unexpectedly uncategorizable.
@@ -445,8 +445,9 @@ Exception--file 'eraseme_whitespace_003': File contains
'\t'.
Exception--file 'eraseme_whitespace_004': File contains '\v'.
EOF
-diff --unified=0 eraseme_expected eraseme_observed && rm --force \
- eraseme* \
+diff --unified=0 expected_eraseme observed_eraseme && rm --force \
an_expungible_file.bak \
an_unexpected_file \
another.unexpected.file \
+ eraseme* \
+ ./*eraseme \