[llvm-commits] [test-suite] r105180 - /test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
Daniel Dunbar
daniel at zuster.org
Sun May 30 15:51:15 PDT 2010
Author: ddunbar
Date: Sun May 30 17:51:15 2010
New Revision: 105180
URL: http://llvm.org/viewvc/llvm-project?rev=105180&view=rev
Log:
Update another test which depended on its path name, subtly.
Modified:
test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
Modified: test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c?rev=105180&r1=105179&r2=105180&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c Sun May 30 17:51:15 2010
@@ -61,6 +61,11 @@
#define MAX_SIZE 1000000
+static const char *mybasename(const char *str) {
+ const char *base = strrchr(str, '/');
+ return base ? base+1 : str;
+}
+
encode_char(char c) { /*1*/
return (32+(c & 63)); /*2*/
}
@@ -181,7 +186,7 @@
size = read_data(in, inbuf);
gettimeofday(&pre,0);
for(i=0;i<1000;i++){
- outsize = do_encode(inbuf,outbuf, size, argv[1]);
+ outsize = do_encode(inbuf,outbuf, size, mybasename(argv[1]));
}
More information about the llvm-commits
mailing list