aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@gcc.gnu.org>2000-04-30 16:12:56 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2000-04-30 16:12:56 +0000
commit3f49b8429cb6e4f440d796b8ed8bd75185ada516 (patch)
tree6490aa565a28570bd1bb91f1edc51472ef61e73c
parent4d0482f6eb8ad9ecc2e552a3285175c0cecc9c76 (diff)
downloadgcc-3f49b8429cb6e4f440d796b8ed8bd75185ada516.zip
gcc-3f49b8429cb6e4f440d796b8ed8bd75185ada516.tar.gz
gcc-3f49b8429cb6e4f440d796b8ed8bd75185ada516.tar.bz2
mkcheck.in: Rely on exit status instead of the presence of a core file.
2000-04-28 Loren J. Rittle <ljrittle@acm.org> * mkcheck.in: Rely on exit status instead of the presence of a core file. Added comments on how/where to save core and exe files. Move shell wildcards outside quotes and fix core path. From-SVN: r33550
-rw-r--r--libstdc++-v3/ChangeLog11
-rwxr-xr-xlibstdc++-v3/mkcheck.in27
2 files changed, 30 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 552bf27..7c903fa 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -2,6 +2,17 @@
* docs/download.html: Add link to list of mirror sites.
+2000-04-28 Loren J. Rittle <ljrittle@acm.org>
+
+ * mkcheck.in: Rely on exit status instead of the presence of a
+ core file. Added comments on how/where to save core and exe
+ files. Move shell wildcards outside quotes and fix core path.
+
+2000-04-27 scott snyder <snyder@fnal.gov>
+
+ * src/misc-inst.cc: Explicitly instantiate ifstream and ofstream
+ classes.
+
2000-04-26 Nathan C. Myers <ncm@cantrip.org>
* bits/basic_string.h: include <bits/atomicity.h> instead
diff --git a/libstdc++-v3/mkcheck.in b/libstdc++-v3/mkcheck.in
index df8c3fe..83c3419 100755
--- a/libstdc++-v3/mkcheck.in
+++ b/libstdc++-v3/mkcheck.in
@@ -124,8 +124,10 @@ if [ ! -x "$TEST_DIR/printnow" ]; then
fi
# Remove old executables.
-rm -rf "$TEST_DIR/*exe"
-rm -rf "$TEST_DIR/core" "$TEST_DIR/*core"
+rm -rf "$TEST_DIR"/*exe
+
+# Remove old core files (which now get left in cwd, not $TEST_DIR).
+rm -rf ./*core
# Copy over the data files for filebufs in read-only mode
cp $SRC_DIR/testsuite/27_io/*.txt $TEST_DIR
@@ -202,16 +204,21 @@ do
# Actually run the executable and time it . . .
TIMEFORMAT='timemark %R'
E_TIME_TEXT="$(exec 2>&1; time $ST_NAME)"
+ E_ABNORMAL_TERMINATION=$?
E_TIME="$(echo $E_TIME_TEXT | awk '{print $2}')"
# joining those two commands does not work due to quoting problems:
#E_TIME="$(exec 2>&1; time $ST_NAME | awk '{print $2}')"
# this will work as a fallback on certain systems...?
#E_TIME=$(exec 2>&1; time $ST_NAME | cut -d ' ' -f 2)
- if [ -f core ]; then
- ST_EXEC='-'
- echo "st_fail" | awk '{printf("\t%s\n", $1)}'
- rm core
+ if [ "$E_ABNORMAL_TERMINATION" -ne 0 ]; then
+ ST_EXEC='-'
+ echo "st_fail" | awk '{printf("\t%s\n", $1)}'
+ rm -f ./*core
+ # sometimes you want to save all core files for review:
+ #mv ./core $ST_NAME.core
+ # sometimes the OS names core files as programname.core:
+ #mv ./*core $ST_NAME.core
else
# XXX this should probably be a function?
@@ -258,13 +265,17 @@ do
rm $DIFF_FILE
done
else
- # the file does no output, and didn't core, so
- # assume passed.
+ # the file does no output, and didn't abnormally
+ # terminate, so assume passed.
ST_EXEC="+"
echo "st_pass" | awk '{printf("\t%s\t", $1)}'
fi
fi
rm "$ST_NAME"
+ # sometimes you want to save all failing exe files for review:
+ #if [ "$ST_EXEC" = "+" ]; then
+ # rm "$ST_NAME"
+ #fi
else
# the file did not compile. Write out compilation info to the log file.
echo "$CXX $CXX_FLAG $ST_FLAG $INC_PATH $LIB_PATH $CNAME -o $ST_NAME" \