Merge bitcoin-core/secp256k1#1804: test: show both CMake and Autotools usage for ctime_tests
1bc74a22f8test: show both Autotools and CMake usage for ctime_tests (8144225309) Pull request description: When building with CMake and running `ctime_tests` outside valgrind, users see: ``` Usage: libtool --mode=execute valgrind ./ctime_tests ``` CMake users don't have libtool. Show both commands. ### Before ``` $ ./build/bin/ctime_tests This test can only usefully be run inside valgrind because it was not compiled under msan. Usage: libtool --mode=execute valgrind ./ctime_tests ``` ### After ``` $ ./build/bin/ctime_tests This test can only usefully be run inside valgrind because it was not compiled under msan. Usage: valgrind ./ctime_tests (or with Autotools: libtool --mode=execute valgrind ./ctime_tests) ``` Fixes #1697 ACKs for top commit: real-or-random: utACK1bc74a22f8Tree-SHA512: d35c332c75fe3df66928cb8b137e11995c67a57744985a50a539d1d9f24cf39ee46f17c6f6a501664a62f67e11b7bb041ba0e1eed6632bf7dccdb57a2c88f9bc
This commit is contained in:
@@ -49,7 +49,7 @@ int main(void) {
|
||||
|
||||
if (!SECP256K1_CHECKMEM_RUNNING()) {
|
||||
fprintf(stderr, "This test can only usefully be run inside valgrind because it was not compiled under msan.\n");
|
||||
fprintf(stderr, "Usage: libtool --mode=execute valgrind ./ctime_tests\n");
|
||||
fprintf(stderr, "Usage: valgrind ./ctime_tests (or with Autotools: libtool --mode=execute valgrind ./ctime_tests)\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
ctx = secp256k1_context_create(SECP256K1_CONTEXT_DECLASSIFY);
|
||||
|
||||
Reference in New Issue
Block a user