diff options
author | Tom de Vries <tdevries@suse.de> | 2019-08-21 11:49:33 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-08-21 11:49:33 +0200 |
commit | 61f80d5dafebdb3a2cebac489803c5ce18827178 (patch) | |
tree | cbbd1a9f58ea6171d868d708a7cb17310c523c67 /gdb/testsuite | |
parent | b068c22c2a408dca726f22428a8afedf07368d65 (diff) | |
download | gdb-61f80d5dafebdb3a2cebac489803c5ce18827178.zip gdb-61f80d5dafebdb3a2cebac489803c5ce18827178.tar.gz gdb-61f80d5dafebdb3a2cebac489803c5ce18827178.tar.bz2 |
[gdb/testsuite] Stabilize gdb-caching-proc.exp test order
The test-case gdb-caching-proc.exp tests each gdb_caching_proc in
gdb/testsuite/lib/*.exp. However, the order of .exp file being tested can
change from run to run, because of using glob.
Fix this by sorting the glob result.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2019-08-21 Tom de Vries <tdevries@suse.de>
* gdb.base/gdb-caching-proc.exp: Sort files.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/gdb-caching-proc.exp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5bc5f77..7fea9cd 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-08-21 Tom de Vries <tdevries@suse.de> + + * gdb.base/gdb-caching-proc.exp: Sort files. + 2019-08-20 Tom de Vries <tdevries@suse.de> * lib/pascal.exp (gdb_compile_pascal): Remove $destfile before diff --git a/gdb/testsuite/gdb.base/gdb-caching-proc.exp b/gdb/testsuite/gdb.base/gdb-caching-proc.exp index 82645b0..ee78727 100644 --- a/gdb/testsuite/gdb.base/gdb-caching-proc.exp +++ b/gdb/testsuite/gdb.base/gdb-caching-proc.exp @@ -104,6 +104,7 @@ if { ![gdb_simple_compile $me $src executable] } { # Test gdb_caching_procs in gdb/testsuite/lib/*.exp set files [eval glob -types f $srcdir/lib/*.exp] +set files [lsort $files] foreach file $files { test_file $file } |