[llvm-commits] [test-suite] r112087 - /test-suite/trunk/MultiSource/Applications/OpenSSL/speed.c
Daniel Dunbar
daniel at zuster.org
Wed Aug 25 14:09:31 PDT 2010
Author: ddunbar
Date: Wed Aug 25 16:09:31 2010
New Revision: 112087
URL: http://llvm.org/viewvc/llvm-project?rev=112087&view=rev
Log:
OpenSSL: Add some additional logging.
Modified:
test-suite/trunk/MultiSource/Applications/OpenSSL/speed.c
Modified: test-suite/trunk/MultiSource/Applications/OpenSSL/speed.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/OpenSSL/speed.c?rev=112087&r1=112086&r2=112087&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/OpenSSL/speed.c (original)
+++ test-suite/trunk/MultiSource/Applications/OpenSSL/speed.c Wed Aug 25 16:09:31 2010
@@ -432,11 +432,16 @@
result |= test_func();
double time = Time_F(STOP);
fprintf(out, "%s: %.2f\n", string, time);
+ if (result)
+ fprintf(stderr, "error: %s failed!\n", string);
return result;
}
int main(int argc, char **argv) {
- assert(argc == 2);
+ if (argc != 2) {
+ fprintf(stderr, "usage: %s <results-file>\n", argv[0]);
+ return 1;
+ }
int ret = 0;
FILE *f = fopen(argv[1], "w");
More information about the llvm-commits
mailing list