aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-threaded.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-06tests: Minor fix to run-threaded.c.Werner Koch1-1/+5
* tests/run-threaded.c (random_data_close): Correct FD test. -- An invalid DS is -1 and not 0; this fix is for correctness and does not chnage anything in the real world. Signed-off-by: Werner Koch <[email protected]>
2019-06-06tests: Add option "allow-del" to run-threadedAndre Heinecke1-0/+74
* tests/run-threaded.c (main): Handle allow-del. (allow-del): New. Variable to allow deletion of keys. (import): Delete key after import if allow-del is set. (delete_impres): Delete keys from an import result. (delete_fpr): Delete a key by fingerprint. -- This is intended to test write access and locking of the keyring by repeatedly importing and deleting pubkeys. It is an option because it might cause keyring corruption etc. so it should be explicitly enabled.
2019-06-05tests: Implement import in run-threadedAndre Heinecke1-0/+36
* tests/run-threaded.c (import): New. (do_data_op): Call it.
2019-06-05tests: Use synced output for error in run-threadedAndre Heinecke1-2/+2
* tests/run-threaded.c (do_data_op): Use synced out macro.
2019-06-05tests: Avoid variable named the same as a macroAndre Heinecke1-8/+8
* tests/run-threaded.c (decrypt, verify): Don't use a variable name that is also a macro. -- It just looks confusing and strange at first glance.
2019-06-05tests,w32: Fix thread creation in run-threadedAndre Heinecke1-2/+4
* tests/run-threaded.c (create_thread): Check proper return value and not return value of CloseHandle.
2019-02-11tests: Fix memleak in run-threadedAndre Heinecke1-0/+1
* tests/run-threaded.c (verify): Free msg.
2018-11-16Add SPDX identifiers to most source filesWerner Koch1-18/+19
-- Signed-off-by: Werner Koch <[email protected]>
2018-11-15tests: Add run-threaded for multithread testsAndre Heinecke1-0/+678
* tests/Makefile.am (run-threaded): Add. * tests/run-threaded.c: New. -- This test is intended to help detect race conditions or other multithread problems. It can also be used to put the whole GnuPG system under extreme load.