After the gdb test-suite runs there are some files
left in /tmp/tmp*/*.gdb-index, remove those files
and the directory at the end of the test case.
gdb/testsuite:
2021-05-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
* gdb.base/index-cache.exp: Cleanup $cache_dir/*.gdb-index and
remove the directory.
* gdb.dwarf2/per-bfd-sharing.exp: Likewise.
+2021-05-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * gdb.base/index-cache.exp: Cleanup $cache_dir/*.gdb-index and
+ remove the directory.
+ * gdb.dwarf2/per-bfd-sharing.exp: Likewise.
+
2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* gdb.python/py-inferior.exp: Add test cases for 'connection_num'.
# Test again with the cache disabled, now that it is populated.
test_cache_disabled $cache_dir "after populate"
+lassign [remote_exec host sh "-c \"rm $cache_dir/*.gdb-index\""] ret
+if { $ret != 0 } {
+ fail "couldn't remove files in temporary cache dir"
+ return
+}
+
+lassign [remote_exec host rmdir "$cache_dir"] ret
+if { $ret != 0 } {
+ fail "couldn't remove temporary cache dir"
+ return
+}
}
}
}
+
+lassign [remote_exec host sh "-c \"rm $cache_dir/*.gdb-index\""] ret
+if { $ret != 0 } {
+ fail "couldn't remove files in temporary cache dir"
+ return
+}
+
+lassign [remote_exec host rmdir "$cache_dir"] ret
+if { $ret != 0 } {
+ fail "couldn't remove temporary cache dir"
+ return
+}